Documentation ¶
Index ¶
- func API(build string, shutdown chan os.Signal, log *log.Logger, db *sqlx.DB, ...) http.Handler
- type Check
- type Product
- func (p *Product) Create(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- func (p *Product) Delete(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- func (p *Product) List(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- func (p *Product) Retrieve(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- func (p *Product) Update(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- type User
- func (u *User) Create(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- func (u *User) Delete(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- func (u *User) List(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- func (u *User) Retrieve(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- func (u *User) Token(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
- func (u *User) Update(ctx context.Context, w http.ResponseWriter, r *http.Request, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Check ¶
type Check struct {
// contains filtered or unexported fields
}
Check provides support for orchestration health checks.
type Product ¶
type Product struct {
// contains filtered or unexported fields
}
Product represents the Product API method handler set.
func (*Product) Create ¶
func (p *Product) Create(ctx context.Context, w http.ResponseWriter, r *http.Request, params map[string]string) error
Create decodes the body of a request to create a new product. The full product with generated fields is sent back in the response.
func (*Product) Delete ¶
func (p *Product) Delete(ctx context.Context, w http.ResponseWriter, r *http.Request, params map[string]string) error
Delete removes a single product identified by an ID in the request URL.
func (*Product) List ¶
func (p *Product) List(ctx context.Context, w http.ResponseWriter, r *http.Request, params map[string]string) error
List gets all existing products in the system.
type User ¶
type User struct {
// contains filtered or unexported fields
}
User represents the User API method handler set.
func (*User) Create ¶
func (u *User) Create(ctx context.Context, w http.ResponseWriter, r *http.Request, params map[string]string) error
Create inserts a new user into the system.
func (*User) Delete ¶
func (u *User) Delete(ctx context.Context, w http.ResponseWriter, r *http.Request, params map[string]string) error
Delete removes the specified user from the system.
func (*User) List ¶
func (u *User) List(ctx context.Context, w http.ResponseWriter, r *http.Request, params map[string]string) error
List returns all the existing users in the system.
func (*User) Retrieve ¶
func (u *User) Retrieve(ctx context.Context, w http.ResponseWriter, r *http.Request, params map[string]string) error
Retrieve returns the specified user from the system.
Click to show internal directories.
Click to hide internal directories.