svc

package
v0.1.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrMissingName defines the error if name is missing.
	ErrMissingName = errors.New("missing a name")
)

Functions

func NewInstrument

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

NewInstrument returns a service that instruments metrics.

func NewLogging

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

NewLogging returns a service that logs messages.

func NewService

func NewService() v0proto.HelloHandler

NewService returns a service implementation for HelloHandler.

func NewTracing

func NewTracing(next v0proto.HelloHandler) v0proto.HelloHandler

NewTracing returns a service that instruments traces.

Types

type Hello

type Hello struct {
}

Hello defines implements the business logic for HelloHandler.

func (Hello) Greet

Greet implements the HelloHandler interface.

Jump to

Keyboard shortcuts

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