Documentation ¶
Index ¶
- Variables
- func DecodeAddUserResponse(_ context.Context, r *http.Response) (interface{}, error)
- func DecodeAdduserRequest(_ context.Context, r *http.Request) (interface{}, error)
- func EncodeRequest(_ context.Context, r *http.Request, request interface{}) error
- func EncodeResponse(_ context.Context, w http.ResponseWriter, response interface{}) error
- func MakeAdduserEndpoint(svc Service) endpoint.Endpoint
- type AddUserRequest
- type AddUserResponse
- type Proxymw
- type Service
- type ServiceMiddleware
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEmpty = errors.New("empty inputs")
ErrEmpty is returned when an input string is empty.
Functions ¶
func DecodeAddUserResponse ¶
func DecodeAdduserRequest ¶
func EncodeRequest ¶
func EncodeResponse ¶
func EncodeResponse(_ context.Context, w http.ResponseWriter, response interface{}) error
func MakeAdduserEndpoint ¶
Types ¶
type AddUserRequest ¶
type AddUserResponse ¶
type Proxymw ¶
type Proxymw struct {
// contains filtered or unexported fields
}
Proxymw implements StringService, forwarding Uppercase requests to the provided endpoint, and serving all other (i.e. Count) requests via the next StringService.
type ServiceMiddleware ¶
ServiceMiddleware is a chainable behavior modifier for Service.
func InstrumentingMiddleware ¶
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) ServiceMiddleware
func ProxyingMiddleware ¶
Click to show internal directories.
Click to hide internal directories.