File tree 1 file changed +9
-6
lines changed 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -28,28 +28,31 @@ var pingPollingFreq = 5 * time.Second
28
28
// - the first character of the identifier's name is a Unicode upper case letter (Unicode class "Lu"); and
29
29
// - the identifier is declared in the package block or it is a field name or method name.
30
30
31
+ // We need this so it can be exported
32
+ type EnvironmentId int
33
+
31
34
//HandlerSqlConnexion is a type of variable to help us manage our connexion to the SQL databases
32
35
type HandlerSqlConnexion struct {
33
36
DSN string // aurora database connection string
34
37
APIAccessToken string
35
38
db * sql.DB
36
- environmentId int
39
+ environmentId EnvironmentId
37
40
}
38
41
39
42
// Environment is a type of variable to help us manage our differing {dev,demo,prod} AWS accounts
40
43
type Environment struct {
41
- environmentId int
44
+ environmentId EnvironmentId
42
45
Cfg aws.Config
43
46
AccountID string
44
47
Stage string
45
48
}
46
49
47
50
// https://github.com/unee-t/processInvitations/blob/master/sql/1_process_one_invitation_all_scenario_v3.0.sql#L12-L16
48
51
const (
49
- EnvUnknown int = iota // Oops
50
- EnvDev // Development aka Staging
51
- EnvProd // Production
52
- EnvDemo // Demo, which is like Production, for prospective customers to try
52
+ EnvUnknown EnvironmentId = iota // Oops
53
+ EnvDev // Development aka Staging
54
+ EnvProd // Production
55
+ EnvDemo // Demo, which is like Production, for prospective customers to try
53
56
)
54
57
55
58
// GetSecret is the Golang equivalent for
You can’t perform that action at this time.
0 commit comments