Documentation ¶
Index ¶
- Constants
- type Bonjour
- type Prometheus
- func (p *Prometheus) IncPV(platform, path string)
- func (p *Prometheus) IncUV(platform, path string)
- func (p *Prometheus) RecordReconnection(platform string, reconnects int)
- func (p *Prometheus) RegisterLiveUserFunc(function func() float64)
- func (p *Prometheus) RegisterUsersFunc(function func() float64)
Constants ¶
View Source
const (
PromNamespace = "probe"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bonjour ¶
type Bonjour struct {
// contains filtered or unexported fields
}
Bonjour is the bonjour service
func NewBonjour ¶
func NewBonjour(repo *repository.Probe) *Bonjour
NewBonjour creates a bonjour request-related service with repo
type Prometheus ¶
type Prometheus struct {
// contains filtered or unexported fields
}
func NewPrometheus ¶
func NewPrometheus() *Prometheus
func (*Prometheus) IncPV ¶
func (p *Prometheus) IncPV(platform, path string)
func (*Prometheus) IncUV ¶
func (p *Prometheus) IncUV(platform, path string)
func (*Prometheus) RecordReconnection ¶
func (p *Prometheus) RecordReconnection(platform string, reconnects int)
func (*Prometheus) RegisterLiveUserFunc ¶
func (p *Prometheus) RegisterLiveUserFunc(function func() float64)
func (*Prometheus) RegisterUsersFunc ¶
func (p *Prometheus) RegisterUsersFunc(function func() float64)
Click to show internal directories.
Click to hide internal directories.