Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware func(TransactionsService) TransactionsService
Middleware describes a service middleware.
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
LoggingMiddleware takes a logger as a dependency and returns a TransactionsService Middleware.
type TransactionsService ¶
type TransactionsService interface { // Add your methods here // e.x: Foo(ctx context.Context,s string)(rs string, err error) Get(ctx context.Context, uuid string) (t []io.Transaction, error error) Create(ctx context.Context, transaction io.Transaction) (t io.Transaction, error error) DeleteAll(ctx context.Context) (error error) }
TransactionsService describes the service.
func New ¶
func New(middleware []Middleware) TransactionsService
New returns a TransactionsService with all of the expected middleware wired in.
func NewBasicTransactionsService ¶
func NewBasicTransactionsService() TransactionsService
NewBasicTransactionsService returns a naive, stateless implementation of TransactionsService.
Click to show internal directories.
Click to hide internal directories.