Documentation ¶
Overview ¶
Package metrics gather anonymous information about the usage of NetBird management
Index ¶
Constants ¶
View Source
const (
// PayloadEvent identifies an event type
PayloadEvent = "self-hosted stats"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnManager ¶
type ConnManager interface {
GetAllConnectedPeers() map[string]struct{}
}
ConnManager peer connection manager that holds state for current active connections
type DataSource ¶
DataSource metric data source
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker metrics collector and pusher
func NewWorker ¶
func NewWorker(ctx context.Context, id string, dataSource DataSource, connManager ConnManager) *Worker
NewWorker returns a metrics worker
Click to show internal directories.
Click to hide internal directories.