todo

package
v0.0.0-...-64643be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2022 License: Unlicense Imports: 13 Imported by: 0

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

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL