metrics

package
v0.4.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes interface {
	OnSent(int)
	OnRecv(int)
}

type Clients

type Clients interface {
	OnConnected()
	OnDisconnected(p bool)
	OnPersisted(n uint64)
	OnRemoved(n int)
	OnExpired(n int)
	OnRejected()
}

type IFace

type IFace interface {
	Informer
	Provider
}

func New

func New() IFace

type Informer

type Informer interface {
	Bytes() Bytes
	Packets() Packets
	Subs() Subscriptions
	Clients() Clients
}

type Packets

type Packets interface {
	OnSent(p mqttp.Type)
	OnRecv(p mqttp.Type)
	OnAddRetain()
	OnSubRetain()
	OnAddUnAckSent(n int)
	OnSubUnAckSent(n int)
	OnAddUnAckRecv(n int)
	OnSubUnAckRecv(n int)
	OnAddStore(n int)
	OnSubStore(n int)
	OnRejected(n int)
}

type Provider

type Provider interface {
	Register(name string, face vlmonitoring.IFace) error
	Shutdown() error
}

type Subscriptions

type Subscriptions interface {
	OnSubscribe()
	OnUnsubscribe()
}

Jump to

Keyboard shortcuts

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