Documentation ¶
Index ¶
- Constants
- func Fetch(envkey, clientNameArg, clientVersionArg string, rollingReload bool, ...) (string, error)
- func FetchMap(envkey, clientNameArg, clientVersionArg string, rollingReload bool, ...) (parser.EnvMap, parser.EnvMap, error)
- func InlineStart(shouldCacheArg bool, memCacheArg bool)
- func IsAlive() bool
- func LaunchDetachedIfNeeded(opts DaemonOptions) error
- func ListenChange(props ListenChangeProps)
- func ListenChangeWithEnv(envkey, clientName, clientVersion string, rollingReload bool, rollingPct uint8, ...)
- func RemoveListener(envkey string)
- func Stop()
- type DaemonOptions
- type DaemonResponse
- type EnvkeyMeta
- type ListenChangeProps
- type SocketAuth
Constants ¶
View Source
const CHECK_SUSPENDED_INTERVAL = 1000 * 10 // 10 seconds
View Source
const JITTER = 500 //ms
View Source
const SUSPENSION_MIN_DELTA = 100 // 100 ms
View Source
const WS_PING_INTERVAL = time.Duration(10) * time.Second
Variables ¶
This section is empty.
Functions ¶
func InlineStart ¶
func LaunchDetachedIfNeeded ¶
func LaunchDetachedIfNeeded(opts DaemonOptions) error
func ListenChange ¶
func ListenChange(props ListenChangeProps)
func ListenChangeWithEnv ¶
func RemoveListener ¶
func RemoveListener(envkey string)
Types ¶
type DaemonOptions ¶
type DaemonResponse ¶
type EnvkeyMeta ¶
type ListenChangeProps ¶
type ListenChangeProps struct { Envkey string WatchThrottle uint32 OnChange func() OnStartRolling func(batchNum, totalBatches uint16, watchThrottle uint32) OnRollingComplete func() OnInvalid func() OnThrottled func() OnLostDaemonConnection func(error) OnDaemonConnectFailed func(error) OnWillReconnect func() OnReconnected func() OnReconnectedNoChange func() OnSuspended func() OnSuspendedNoChange func() }
type SocketAuth ¶
Click to show internal directories.
Click to hide internal directories.