Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyRunning = errors.New("already running") ErrMonitorClosed = errors.New("monitor closed") )
Errors.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { CollectPeriod uint // In milliseconds. RequestTLS bool RequestTimeout uint // In milliseconds, must be less than CollectPeriod. }
Config is a billing monitor configuration.
type Monitor ¶
type Monitor struct {
// contains filtered or unexported fields
}
Monitor is a client billing monitor.
func NewMonitor ¶
func NewMonitor(conf *Config, logger *util.Logger, db *reform.DB, pr *proc.Processor, pscAddr string, pw data.PWDGetter) *Monitor
NewMonitor creates a new client billing monitor.
Click to show internal directories.
Click to hide internal directories.