-
Notifications
You must be signed in to change notification settings - Fork 1
/
constants.go
43 lines (38 loc) · 1.36 KB
/
constants.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
package commons
import "fmt"
// Common Constants
const (
ActuatorPrefix = "/actuator"
CertFilePath = "cert-file"
CertFilePathDefaultValue = ""
CertFilePathUsage = "cert file path is the path of the certificate file"
KeyFilePath = "key-file"
KeyFilePathDefaultValue = ""
KeyFilePathUsage = "key file path is the path of the key file"
MoxyPrefix = "/moxy"
PersistencePath = "persistence-path"
PersistenceDefaultValue = "persistence.db"
PersistenceUsage = "persistence path is the path of the file which acts as the persistence layer for this application"
Port = "port"
PortDefaultValue = 8080
PortUsage = "port is the port number on which the application is running"
TLSEnabled = "tls"
TLSEnabledDefaultValue = false
TLSEnabledUsage = "tls enabled tells whether the application is running on HTTPS or not"
)
// Endpoint Paths
var (
MockEndpointPath = fmt.Sprintf("%smock", MoxyPrefix)
UnMockEndpointPath = fmt.Sprintf("%sunMock", MoxyPrefix)
)
// MockEntityName is the mock entity name
const (
MockEntityName = "mock"
)
// Response constants
const (
TagHeader = "x-tag"
URLHeader = "x-url"
ApplicationJSONContentType = "application/json"
TextStringContentType = "text/string"
)