Documentation ¶
Overview ¶
Package handler contains the full set of handler functions and routes supported by the web api.
Index ¶
- func Create(storageSvc storage.Storage) http.HandlerFunc
- func Delete(storageSvc storage.Storage) http.HandlerFunc
- func List(storageSvc storage.Storage) http.HandlerFunc
- func Read(storageSvc storage.Storage) http.HandlerFunc
- func Replace(storageSvc storage.Storage) http.HandlerFunc
- func Setup(resourceStorage map[string]storage.Storage) http.Handler
- func Update(storageSvc storage.Storage) http.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(storageSvc storage.Storage) http.HandlerFunc
Create operates as a http handler, to add a new resource.
func Delete ¶
func Delete(storageSvc storage.Storage) http.HandlerFunc
Delete operates as a http handler, to delete an existing resource.
func List ¶
func List(storageSvc storage.Storage) http.HandlerFunc
List operates as a http handler, to return all available resources.
func Read ¶
func Read(storageSvc storage.Storage) http.HandlerFunc
Read operates as a http handler, to return the requested resource by id.
func Replace ¶
func Replace(storageSvc storage.Storage) http.HandlerFunc
Replace operates as a http handler, to replace an existing resource.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.