Documentation ¶ Index ¶ type API func CreateAPI(s lane.Service, l logger.Logger) *API func (a *API) Create(r *http.Request, model interface{}) (interface{}, error) func (a *API) CreateLane(w http.ResponseWriter, r *http.Request) func (a *API) Routes(router chi.Router) type Lane Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type API ¶ type API struct { lane.Service logger.Logger } API dependencies func CreateAPI ¶ func CreateAPI(s lane.Service, l logger.Logger) *API CreateAPI creates API func (*API) Create ¶ func (a *API) Create(r *http.Request, model interface{}) (interface{}, error) Create implements handlers.CreateService func (*API) CreateLane ¶ func (a *API) CreateLane(w http.ResponseWriter, r *http.Request) CreateLane handler func (*API) Routes ¶ func (a *API) Routes(router chi.Router) Routes install handlers type Lane ¶ type Lane struct { ID string `json:"id,omitempty"` Type string `json:"type"` Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` Layout string `json:"layout"` } Lane model Source Files ¶ View all Source files api.go mappers.go models.go Click to show internal directories. Click to hide internal directories.