teams

package
v0.0.0-...-850ec13 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound is returned when a team was not found.
	ErrNotFound = errors.New("team not found")

	// ErrAlreadyAssigned is returned when a team is already assigned.
	ErrAlreadyAssigned = errors.New("team is already assigned")

	// ErrNotAssigned is returned when a team is not assigned.
	ErrNotAssigned = errors.New("team is not assigned")
)

Functions

This section is empty.

Types

type LoggingRequestID

type LoggingRequestID func(context.Context) string

LoggingRequestID returns the request ID as string for logging

type Service

Service handles all interactions with teams.

func NewLoggingService

func NewLoggingService(s Service, requestID LoggingRequestID) Service

NewLoggingService wraps the Service and provides logging for its methods.

func NewService

func NewService(teams Store) Service

NewService returns a Service that handles all interactions with teams.

func NewTracingService

func NewTracingService(s Service, requestID TracingRequestID) Service

NewTracingService wraps the Service and provides tracing for its methods.

type Store

Store defines the interface to persist teams.

type TracingRequestID

type TracingRequestID func(context.Context) string

TracingRequestID returns the request ID as string for tracing

Jump to

Keyboard shortcuts

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