Documentation ¶
Index ¶
- func ChiWalkFunc(method string, route string, handler http.Handler, ...) error
- func PingPong(w http.ResponseWriter, r *http.Request)
- func Register(manager core.Manager) error
- func ResponseMessage(statusCode int, message string) map[string]interface{}
- func ResponseWrapper(f func(w http.ResponseWriter, r *http.Request) (interface{}, int, error)) http.HandlerFunc
- func ShutdownOnNotify(ctx context.Context, srv *http.Server, idleConnsClosed chan struct{})
- type ItemsResponse
- type NewCollectionVM
- type ResponseResource
- type Server
- func (server *Server) CreateCollection(w http.ResponseWriter, r *http.Request) (responseData interface{}, statusCode int, err error)
- func (server *Server) GetCollections(w http.ResponseWriter, r *http.Request) (responseData interface{}, statusCode int, err error)
- func (server *Server) GetItem(w http.ResponseWriter, r *http.Request) (responseData interface{}, statusCode int, err error)
- func (server *Server) GetItems(w http.ResponseWriter, r *http.Request) (responseData interface{}, statusCode int, err error)
- func (server *Server) GetSchema(w http.ResponseWriter, r *http.Request) (responseData interface{}, statusCode int, err error)
- func (server *Server) Routes() *chi.Mux
- func (server *Server) Run()
- func (server *Server) SaveItem(w http.ResponseWriter, r *http.Request) (responseData interface{}, statusCode int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChiWalkFunc ¶
func ResponseMessage ¶
func ResponseWrapper ¶
func ResponseWrapper(f func(w http.ResponseWriter, r *http.Request) (interface{}, int, error)) http.HandlerFunc
Types ¶
type ItemsResponse ¶
type ItemsResponse struct { Items []map[string]interface{} Meta datalayer.ItemsResponseInfo }
type NewCollectionVM ¶
type ResponseResource ¶
Click to show internal directories.
Click to hide internal directories.