-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.go
More file actions
44 lines (33 loc) · 1.27 KB
/
constants.go
File metadata and controls
44 lines (33 loc) · 1.27 KB
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 core
// WebServerOffString represents the constant used to switch off the web server
const WebServerOffString = "off"
// DBType represents the type of DB
type DBType string
// LevelDB is the local levelDB
const LevelDB DBType = "levelDB"
// MongoDB is the mongo db identifier
const MongoDB DBType = "mongoDB"
const (
getAccountEndpointFormat = "address/%s"
getGuardianDataEndpointFormat = "address/%s/guardian-data"
)
// RedisConnType defines the redis connection type
type RedisConnType string
const (
// RedisInstanceConnType specifies a redis connection to a single instance
RedisInstanceConnType RedisConnType = "instance"
// RedisSentinelConnType specifies a redis connection to a setup with sentinel
RedisSentinelConnType RedisConnType = "sentinel"
)
// NoExpiryValue is the returned value for a persistent key expiry time
const NoExpiryValue = -1
// EnhancedSecurityModeStatus represents the status of the security mode
type EnhancedSecurityModeStatus int
const (
// NotSet means that security mode is not activated
NotSet EnhancedSecurityModeStatus = iota
// ManuallySet means that security mode was activated because of failures
ManuallySet
// AutomaticallySet means that security mode was activated by user with SetSecurityModeNoExpire
AutomaticallySet
)