Documentation ¶
Overview ¶
Package apiserver is ...
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
ApiServer is an HTTPHandler that delegates to RESTStorage objects. It handles URLs of the form: ${prefix}/${storage_key}[/${object_name}] Where 'prefix' is an arbitrary string, and 'storage_key' points to a RESTStorage object stored in storage.
TODO: consider migrating this to go-restful which is a more full-featured version of the same thing.
type RESTStorage ¶
type RESTStorage interface { List(*url.URL) (interface{}, error) Get(id string) (interface{}, error) Delete(id string) error Extract(body string) (interface{}, error) Create(interface{}) error Update(interface{}) error }
RESTStorage is a generic interface for RESTful storage services
Click to show internal directories.
Click to hide internal directories.