registry

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2020 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// RegistryRequests ...
	RegistryRequests = prometheus.NewCounterVec(prometheus.CounterOpts{
		Namespace: "registry",
		Name:      "requests",
		Help:      "The number of registry requests",
	}, []string{"method"})
)

Registry collectors

Functions

This section is empty.

Types

type Registry

type Registry struct {
	Router *router.Router
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(r *router.Router, d database.Database, ma *metrics.Agent) *Registry

NewRegistry creates a new registry handler for the Router

func (*Registry) RegisterMethods

func (r *Registry) RegisterMethods(path string) error

RegisterMethods registers all registry methods behind the given path

Jump to

Keyboard shortcuts

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