Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndPoints ¶
type EndPoints struct { GetTodoEndpoint endpoint.Endpoint TodoPagesEndpoint endpoint.Endpoint TodoSearchEndpoint endpoint.Endpoint CreateTodoEndpoint endpoint.Endpoint UpdateTodoEndpoint endpoint.Endpoint }
func MakeEndPoints ¶
func MakeEndPoints(svc TodoService, logger log.Logger) EndPoints
type ServiceMiddleware ¶
type ServiceMiddleware func(TodoService) TodoService
ServiceMiddleware is a chainable behavior modifier for TodoService.
type TodoService ¶
type TodoService interface { GetTodo(string) (*model.Todo, error) TodoPages(model.PaginationInput) (*model.TodoPagination, error) TodoSearch(model.TodoSearchInput, model.PaginationInput) (*model.TodoPagination, error) CreateTodo(model.CreateTodoInput, string) (*model.Todo, error) UpdateTodo(string, model.UpdateTodoInput, string) (*model.Todo, error) }
func NewInstrumentingMiddleware ¶
func NewInstrumentingMiddleware( counter metrics.Counter, latency metrics.Histogram, svc TodoService) TodoService
func NewLoggingMiddleware ¶
func NewLoggingMiddleware(logger log.Logger, s TodoService) TodoService
func NewService ¶
func NewService(gormdsn string) (TodoService, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.