Ver Fonte

exclude fields so that they are not serialized when we're rewritting api.yaml file (#103)

Thibault "bui" Koechlin há 5 anos atrás
pai
commit
e4993996a5
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      pkg/cwapi/auth.go

+ 4 - 4
pkg/cwapi/auth.go

@@ -31,14 +31,14 @@ type ApiCtx struct {
 	CfgUser      string   `yaml:"machine_id"`
 	CfgPassword  string   `yaml:"password"`
 	Creds        ApiCreds `yaml:"-"`
-	Muted        bool     `yaml:"muted"`
-	DebugDump    bool     `yaml:"debug_dump"`
-
+	/*mostly for mocking/faking api*/
+	Muted     bool `yaml:"-"`
+	DebugDump bool `yaml:"-"`
 	/*runtime*/
 	tokenExpired bool          `yaml:"-"`
 	toPush       []types.Event `yaml:"-"`
 	Http         *sling.Sling  `yaml:"-"`
-	PusherTomb   tomb.Tomb
+	PusherTomb   tomb.Tomb     `yaml:"-"`
 }
 
 type ApiCreds struct {