Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BugsService ¶
type BugsService interface { // Add your methods here Create(ctx context.Context, bug string) error }
BugsService describes the service.
func New ¶
func New(middleware []Middleware) BugsService
New returns a BugsService with all of the expected middleware wired in.
func NewBasicBugsService ¶
func NewBasicBugsService() BugsService
NewBasicBugsService returns a naive, stateless implementation of BugsService.
type Middleware ¶
type Middleware func(BugsService) BugsService
Middleware describes a service middleware.
func LoggingMiddleware ¶
func LoggingMiddleware(logger log.Logger) Middleware
LoggingMiddleware takes a logger as a dependency and returns a BugsService Middleware.
Click to show internal directories.
Click to hide internal directories.