Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var AutoPurgeAge = 12 * time.Hour
AutoPurgeAge is the maximum age allowed for members' last update when automatically purging.
var AutoPurgeInterval = 24 * time.Hour
AutoPurgeInterval is the maximum amount of time to wait before automatically purging the cluster of stale members
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster describes the set of ari proxies in a system. The list is indexed by a hash of the asterisk ID and the ARI application and indicates the time of last contact.
func (*Cluster) All ¶
All returns a list of all cluster members whose LastActive time is no older thatn the given maxAge.
func (*Cluster) App ¶
App returns a list of all cluster members for the given ARI Application whose LastActive time is no older than the given maxAge.
func (*Cluster) Matching ¶
Matching returns a list of all cluster members for whom the given proxy Metadata matches
type Member ¶
type Member struct { // ID is the unique identifier for the Asterisk node ID string // App indicates the ARI application of this proxy App string // LastActive is the timestamp of the last occurrence of this node LastActive time.Time }
Member describes the state of a Member of an application cluster