forked from sqlitebrowser/dbhub.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
38 lines (32 loc) · 761 Bytes
/
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
package main
type Auth0Set struct {
CallbackURL string
ClientID string
Domain string
}
type PageMetaInfo struct {
Auth0 Auth0Set
AvatarURL string
Environment string
LoggedInUser string
NumStatusUpdates int
PageSection string
Protocol string
Server string
Title string
}
type UpdateDataRequestRow struct {
Key map[string]string `json:"key"`
Values map[string]string `json:"values,omitempty"`
}
type UpdateDataRequest struct {
Table string `json:"table"`
Data []UpdateDataRequestRow `json:"data"`
}
type ExecuteSqlRequest struct {
Sql string `json:"sql"`
}
type SaveSqlRequest struct {
Sql string `json:"sql"`
SqlName string `json:"sql_name"`
}