service

package
v0.0.0-...-618fe63 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClubService

type ClubService interface {
	// Add your methods here
	Get(ctx context.Context, id string, token string) (result string, err error)
	Index(ctx context.Context, from, size int32, filter []*model.Query, token string) (results []model.Point, err error)
}

ClubService describes the service.

func New

func New(middleware []Middleware) ClubService

New returns a ClubService with all of the expected middleware wired in.

func NewBasicClubService

func NewBasicClubService() ClubService

NewBasicClubService returns a naive, stateless implementation of ClubService.

type Middleware

type Middleware func(ClubService) ClubService

func LoggingMiddleware

func LoggingMiddleware(logger log.Logger) Middleware

Jump to

Keyboard shortcuts

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