svc

package
v0.0.0-...-d4becda Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 15 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.

func RegisterSettingsBundles

func RegisterSettingsBundles(l *olog.Logger)

RegisterSettingsBundles pushes the settings bundle definitions for this extension to the ocis-settings service.

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