Documentation ¶
Overview ¶
package reg
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ExpirationTime = time.Second * 30 // 30s
)
Functions ¶
func Free ¶
func Free(instanceId string)
Free sets registered instance state to FREE so it can be detected by timer expiration job.
func InitRegistry ¶
func InitRegistry()
InitRegistry starts a timer job for instance expiration detection in a single goroutine.
func InstanceSetSnapshot ¶
InstanceSetSnapshot takes a snapshot for current instances.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.