volumesvc

package
v0.0.0-...-ac6a2c4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitServiceHandler

func InitServiceHandler(
	d *yarpc.Dispatcher,
	parent tally.Scope,
)

InitServiceHandler initialize serviceHandler.

func NewTestServiceHandler

func NewTestServiceHandler() *serviceHandler

NewTestServiceHandler returns an empty new ServiceHandler ptr for testing.

Types

type Metrics

type Metrics struct {
	GetVolumeAPI  tally.Counter
	GetVolume     tally.Counter
	GetVolumeFail tally.Counter

	ListVolumeAPI  tally.Counter
	ListVolume     tally.Counter
	ListVolumeFail tally.Counter

	DeleteVolumeAPI  tally.Counter
	DeleteVolume     tally.Counter
	DeleteVolumeFail tally.Counter
}

Metrics is a placeholder for all metrics in volume manager.

func NewMetrics

func NewMetrics(scope tally.Scope) *Metrics

NewMetrics returns a new instance of volumesvc.Metrics.

Jump to

Keyboard shortcuts

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