-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstructure.go
More file actions
47 lines (42 loc) · 1.15 KB
/
structure.go
File metadata and controls
47 lines (42 loc) · 1.15 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
45
46
47
package main
import (
"encoding/xml"
"net/http"
)
// Response describes the inner response format, along with common fields across requests.
type Response struct {
request *http.Request
writer *http.ResponseWriter
response string
cgi CGIResponse
}
type CGIResponse struct {
code int
message string
other []KV
}
// KV represents a key-value field.
type KV struct {
key string
value string
}
type Config struct {
XMLName xml.Name `xml:"Config"`
Address string `xml:"Address"`
SQLAddress string `xml:"SQLAddress"`
SQLUser string `xml:"SQLUser"`
SQLPass string `xml:"SQLPass"`
SQLDB string `xml:"SQLDB"`
SentryDSN string `xml:"SentryDSN"`
SMTPUsername string `xml:"SMTPUsername"`
SMTPPassword string `xml:"SMTPPassword"`
SMTPHost string `xml:"SMTPHost"`
UseDatadog bool `xml:"UseDatadog"`
UseOTLP bool `xml:"UseOTLP"`
OTLPEndpoint string `xml:"OTLPEndpoint"`
AWSAccessID string `xml:"AWSAccessId"`
AWSSecretKey string `xml:"AWSSecretKey"`
AWSRegion string `xml:"AWSRegion"`
AWSBucket string `xml:"AWSBucket"`
IsDebug bool `xml:"IsDebug"`
}