package
Version:
v0.0.0-...-62716b9
Opens a new window with list of versions in this module.
Published: Jun 23, 2019
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
CreateEndpoint provides service.Create() as general endpoint
which can be used with arbitrary transport layers.
type CreateRequest struct {
Username string `json:"username"`
Email string `json:"email"`
}
type CreateResponse struct {
User *UserEntity `json:"user"`
Err error `json:"-"`
}
Implement the Failer interface for all responses
func Endpoints(service service.user, duration metrics.Histogram, frequency metrics.Counter) Set
Source Files
¶
Click to show internal directories.
Click to hide internal directories.