-
Notifications
You must be signed in to change notification settings - Fork 0
/
clog-model.go
104 lines (96 loc) · 2.08 KB
/
clog-model.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
* Copyright (c) 2024.
* Created by Andy Pangaribuan <https://github.com/apangaribuan>.
*
* This product is protected by copyright and distributed under
* licenses restricting copying, distribution and decompilation.
* All Rights Reserved.
*/
package clog
import "time"
type Note struct {
ExecPath string
ExecFunc string
Key *string
SubKey *string
Data string
}
type DbqV1 struct {
SqlQuery string
SqlArgs *string
Severity string
ExecPath string
ExecFunc string
ErrorMessage *string
StackTrace *string
Host1 string
Host2 *string
Duration1 int
Duration2 *int
StartedAt time.Time
FinishedAt time.Time
}
type HttpCallV1 struct {
Url string
Severity string
ReqHeader *string
ReqParam *string
ReqQuery *string
ReqForm *string
ReqFiles *string
ReqBody *string
ResData *string
ResCode int
ErrMessage *string
StackTrace *string
StartedAt time.Time
FinishedAt time.Time
}
type ServicePieceV1 struct {
SvcParentName *string
SvcParentVersion *string
Endpoint string
Url string
ReqVersion *string
ReqSource *string
ReqHeader *string
ReqParam *string
ReqQuery *string
ReqForm *string
ReqBody *string
ClientIp string
StartedAt time.Time
}
type ServiceV1 struct {
SvcParentName *string
SvcParentVersion *string
Endpoint string
Url string
Severity string
ExecPath string
ExecFunc string
ReqVersion *string
ReqSource *string
ReqHeader *string
ReqParam *string
ReqQuery *string
ReqForm *string
ReqFiles *string
ReqBody *string
ResData *string
ResCode int
ResSubCode string
ErrMessage *string
StackTrace *string
ClientIp string
StartedAt time.Time
FinishedAt time.Time
}
type GrpcV1 struct {
Destination string
Severity string
ExecPath string
ExecFunc string
ReqHeader *string
Data *string
}