service

package
v0.0.0-...-6189a72 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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