# Functions
GetChecksParams gets the params for watching checks event.
GetKeyPrefixParams gets the params for watching prefix event.
GetKeysParams gets the params for watching key event.
GetParams returns the common params for all watch events.
NewDistributedLock new a distributed lock based on consul session.
RegisterWatchHandler append a pair of watch and handler to the list which will be registered to the consul watch service.
# Constants
Keyprefix is the key prefix for listening key changes.
# Structs
Config is the configuration for the consul.
ConsulService handles the client to interact with the consul agent.
DistributedLock holds a session and a lock for mutually exclusive usage.
WatchHandler holds callback and its params.
# Type aliases
WatchCallback is a processor for watch event.