Documentation ¶
Index ¶
- func DecodeUserListRequest(_ context.Context, r *http.Request) (interface{}, error)
- func DecodeUserRequest(_ context.Context, r *http.Request) (interface{}, error)
- func NewUserEndpoint(svc UserService) endpoint.Endpoint
- func NewUserHandler(ctx context.Context, svc UserService) http.Handler
- func NewUserListEndpoint(svc UserService) endpoint.Endpoint
- func NewUserListHandler(ctx context.Context, svc UserService) http.Handler
- type UserListRequest
- type UserListResponse
- type UserRequest
- type UserResponse
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeUserListRequest ¶
func DecodeUserRequest ¶
func NewUserEndpoint ¶
func NewUserEndpoint(svc UserService) endpoint.Endpoint
func NewUserHandler ¶
func NewUserHandler(ctx context.Context, svc UserService) http.Handler
func NewUserListEndpoint ¶
func NewUserListEndpoint(svc UserService) endpoint.Endpoint
func NewUserListHandler ¶
func NewUserListHandler(ctx context.Context, svc UserService) http.Handler
Types ¶
type UserListRequest ¶
type UserListRequest struct { }
type UserListResponse ¶
type UserListResponse struct { Users []common.User common.ErrResponse }
type UserRequest ¶
type UserRequest struct {
User string
}
type UserResponse ¶
type UserResponse struct { User string `json:"user"` Total int `json:"total"` common.ErrResponse }
type UserService ¶
func NewUserService ¶
func NewUserService(r number.NumberRepository) UserService
Click to show internal directories.
Click to hide internal directories.