-
Notifications
You must be signed in to change notification settings - Fork 29
/
types.go
44 lines (38 loc) · 1016 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package daemon
import (
"github.com/envkey/envkey/public/sdks/envkey-source/parser"
)
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 DaemonOptions struct {
VerboseOutput bool
ShouldCache bool
MemCache bool
}
type SocketAuth struct {
Type string `json:"type"`
EnvkeyIdPart string `json:"envkeyIdPart"`
ConnectionId string `json:"connectionId"`
}
type DaemonResponse struct {
CurrentEnv parser.EnvMap
PreviousEnv parser.EnvMap
}
type EnvkeyMeta struct {
ClientName string
ClientVersion string
}