service

package
v0.0.0-...-799489d Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPath = "/metrics"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*options)

func PathOption

func PathOption(path string) Option

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(addr string, opts ...Option) (*Service, error)

func (*Service) Addr

func (s *Service) Addr() net.Addr

func (*Service) Close

func (s *Service) Close() error

func (*Service) Serve

func (s *Service) Serve() error

Jump to

Keyboard shortcuts

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