Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChangeableObject ¶
type DataContainer ¶
type DataContainer struct {
ChangeableObject *ChangeableObject
}
must be inited by user, and passed to consumers of this data
type Monitoring ¶ added in v1.36.0
type Monitoring struct {
State int
}
type Replicount ¶
type Replicount struct {
SlowPollPeriodPerReplica time.Duration // basic period, per-replica, in slow mode
TTLMultiple int // multiple of basic poll period; also the TTL of slow mode cache
FastModeSpeedMultiple int // relative to basic poll period
PollFunc PollFunc
ReportResultsFunc func(newResult *ChangeableObject)
LogFunc func(string)
MonitoringFunc func(*Monitoring)
Context context.Context
DQF chan func(r *Replicount)
DQF_Len int
// contains filtered or unexported fields
}
func New ¶
func New(of ...func(r *Replicount)) (r *Replicount)
Click to show internal directories.
Click to hide internal directories.