Fix a compile error.

This commit is contained in:
Brendan Burns 2014-06-07 21:56:14 -07:00
parent ef7cce5dad
commit 6e7b3fd969

View File

@ -50,14 +50,13 @@ type Status struct {
// TODO: consider migrating this to go-restful which is a more full-featured version of the same thing. // TODO: consider migrating this to go-restful which is a more full-featured version of the same thing.
type ApiServer struct { type ApiServer struct {
prefix string prefix string
apiName string
storage map[string]RESTStorage storage map[string]RESTStorage
} }
// New creates a new ApiServer object. // New creates a new ApiServer object.
// 'storage' contains a map of handlers. // 'storage' contains a map of handlers.
// 'prefix' is the hosting path prefix. // 'prefix' is the hosting path prefix.
func New(storage map[string]RESTStorage, prefix, apiName string) *ApiServer { func New(storage map[string]RESTStorage, prefix string) *ApiServer {
return &ApiServer{ return &ApiServer{
storage: storage, storage: storage,
prefix: prefix, prefix: prefix,