Documentation ¶
Index ¶
Constants ¶
View Source
const (
DEFAULT_PORT = 2112
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricServer ¶
type MetricServer struct {
// contains filtered or unexported fields
}
func New ¶
func New(cfgs ...MetricServerConfiguration) (*MetricServer, error)
func (*MetricServer) Shutdown ¶
func (m *MetricServer) Shutdown() error
func (*MetricServer) Start ¶
func (m *MetricServer) Start()
type MetricServerConfiguration ¶
type MetricServerConfiguration func(*MetricServer) error
func WithPort ¶
func WithPort(Port int) MetricServerConfiguration
Click to show internal directories.
Click to hide internal directories.