Documentation ¶
Overview ¶
Package handlers provides the translation between the HTTP layer and application business logic.
Index ¶
- func API(db *sqlx.DB, log *log.Logger, authenticator *auth.Authenticator) http.Handler
- type Cards
- func (c *Cards) Create(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (c *Cards) Delete(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (c *Cards) List(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (c *Cards) Retrieve(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (c *Cards) Update(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- type Check
- type Menus
- func (m *Menus) Create(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (m *Menus) Delete(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (m *Menus) List(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (m *Menus) Retrieve(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- func (m *Menus) Update(ctx context.Context, w http.ResponseWriter, r *http.Request) error
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cards ¶
type Cards struct {
// contains filtered or unexported fields
}
Cards defines all of the handlers related to Cards. It holds the application state needed by the handler methods.
func (*Cards) Create ¶
Create decodes the body of a request to create a new card. The full card with generated fields is sent back in the response.
type Check ¶
type Check struct {
// contains filtered or unexported fields
}
Check provides support for orchestration health checks.
type Menus ¶
type Menus struct {
// contains filtered or unexported fields
}
Menus defines all of the handlers related to Menus. It holds the application state needed by the handler methods.
func (*Menus) Create ¶
Create decodes the body of a request to create a new menu. The full menu with generated fields is sent back in the response.
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
Users holds handlers for dealing with user.