svc

package
v0.0.0-...-33f9496 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingVersion defines the error if version is missing.
	ErrMissingVersion = errors.New("Version not specified")
	// ErrNoUser defines the error if there is no logged in user
	ErrNoUser = errors.New("No user supplied")
)

Functions

func NewInstrument

func NewInstrument(next v0proto.CanaryHandler, metrics *metrics.Metrics) v0proto.CanaryHandler

NewInstrument returns a service that instruments metrics.

func NewLogging

func NewLogging(next v0proto.CanaryHandler, logger log.Logger) v0proto.CanaryHandler

NewLogging returns a service that logs messages.

func NewService

func NewService(cfg *config.Config, logger log.Logger) v0proto.CanaryHandler

NewService returns a service implementation for CanaryHandler.

func NewTracing

func NewTracing(next v0proto.CanaryHandler) v0proto.CanaryHandler

NewTracing returns a service that instruments traces.

Types

type Canary

type Canary struct {
	// contains filtered or unexported fields
}

Canary defines implements the business logic for CanaryHandler.

func (Canary) SetCanary

func (s Canary) SetCanary(ctx context.Context, req *v0proto.CanaryRequest, rsp *v0proto.CanaryResponse) error

SetCanary implements the CanaryHandler interface.

Jump to

Keyboard shortcuts

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