-
Notifications
You must be signed in to change notification settings - Fork 1
/
types.go
61 lines (54 loc) · 1.69 KB
/
types.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
package main
//errorMessages to for invalid login
type ErrorMessages struct {
LoginError string
SessionTimeOutMins int
}
//errorPage represents shows an error message
type ErrorPage struct {
ErrorMsg string
}
// SecretDetails to hold secret deatils required to run the web app
type SecretDetails struct {
CognitoUserPoolClientID string `json:"cognitoUserPoolClientID"`
CognitoUserPoolClientSecret string `json:"cognitoUserPoolClientSecret"`
Dbname string `json:"dbname"`
Port string `json:"port"`
User string `json:"username"`
Password string `json:"password"`
Host string `json:"host"`
UserPassResetURL string `json:"userPassResetURL"`
SessionTimeOutMins int `json:"sessionTimeOutMins"`
WebAppPort string `json:"webAppPort"`
TokenURL string `json:"tokenURL"`
RedirectURI string `json:"redirectURI"`
AuthURL string `json:"authURL"`
UserIfoURL string `json:"userIfoURL"`
DbSslMode string `json:"dbsslmode"`
}
type CommonPageItems struct {
UserName string
PageDesc string
TableQueryList []TableQueryList
ComparisonResult []ComparisonResult
}
type TableList struct {
TableList string `json:"tablename"`
}
type TableQueryList struct {
TableName string `json:"tablename"`
PgQuery string `json:"pgquery"`
OraQuery string `json:"oraquery"`
}
type ComparisonResult struct {
TableName string
Date string
Result string
PGCount int
OraCount int
DataDiff []DataDiff
}
type DataDiff struct {
DbName string
Data string
}