metrics

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics interface {
	Init(...Option)
	Options() Options
	Enabled() bool
	Start()
	Shutdown()
	String() string
}

type Option

type Option func(*Options)

func OptHost

func OptHost(host string) Option

func OptPath

func OptPath(path string) Option

func OptPlugin

func OptPlugin(plugin drpc.Plugin) Option

func OptPort

func OptPort(port int) Option

func OptServiceName

func OptServiceName(name string) Option

type Options

type Options struct {
	Host        string
	Port        int
	Path        string
	ServiceName string
	Plugins     []drpc.Plugin
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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