Documentation ¶
Index ¶
- Variables
- func NewInstrument(next v0proto.CanaryHandler, metrics *metrics.Metrics) v0proto.CanaryHandler
- func NewLogging(next v0proto.CanaryHandler, logger log.Logger) v0proto.CanaryHandler
- func NewService(cfg *config.Config, logger log.Logger) v0proto.CanaryHandler
- func NewTracing(next v0proto.CanaryHandler) v0proto.CanaryHandler
- type Canary
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.