2
0
Эх сурвалжийг харах

feat(go): store feature flags in code;

Vishal Dalwadi 4 сар өмнө
parent
commit
3a31d01239
2 өөрчлөгдсөн 6 нэмэгдсэн , 1 устгасан
  1. 1 0
      .gitignore
  2. 5 1
      models/structs.go

+ 1 - 0
.gitignore

@@ -22,6 +22,7 @@ controllers/data/
 data/
 .vscode/
 .idea/
+.run/
 netmaker.exe
 netmaker.code-workspace
 dist/

+ 5 - 1
models/structs.go

@@ -16,7 +16,11 @@ const (
 	PLACEHOLDER_TOKEN_TEXT = "ACCESS_TOKEN"
 )
 
-type FeatureFlags map[string]bool
+type FeatureFlags struct {
+	EnableNetworkActivity   bool `json:"enable_network_activity"`
+	EnableIDPIntegration    bool `json:"enable_idp_integration"`
+	AllowMultiServerLicense bool `json:"allow_multi_server_license"`
+}
 
 // AuthParams - struct for auth params
 type AuthParams struct {