-
Notifications
You must be signed in to change notification settings - Fork 0
/
restdatamodel.go
30 lines (26 loc) · 920 Bytes
/
restdatamodel.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
package main
import (
"net/url"
"time"
)
type unsupportedResponse struct {
SupportedMethods []string `json:"supportedMethods,omitempty"`
}
type catchAllResponse struct {
Method string `json:"method,omitempty"`
RequestURI string `json:"requestUri,omitempty"`
URL *url.URL `json:"url,omitempty"`
ContentLength int64 `json:"contentLength,omitempty"`
Host string `json:"host,omitempty"`
Proto string `json:"proto,omitempty"`
RemoteAddr string `json:"remoteAddr,omitempty"`
Body string `json:"body,omitempty"`
}
type healthResponse struct {
Status string `json:"status,omitempty"`
Version string `json:"version,omitempty"`
Info string `json:"info,omitempty"`
DBResponse string `json:"databaseResponse,omitempty"`
LiveTime time.Time `json:"liveTime,omitempty"`
DebugLevel int `json:"debugLevel,omitempty"`
}