exclude fields so that they are not serialized when we're rewritting api.yaml file (#103)
This commit is contained in:
parent
02b2193d64
commit
e4993996a5
|
@ -31,14 +31,14 @@ type ApiCtx struct {
|
||||||
CfgUser string `yaml:"machine_id"`
|
CfgUser string `yaml:"machine_id"`
|
||||||
CfgPassword string `yaml:"password"`
|
CfgPassword string `yaml:"password"`
|
||||||
Creds ApiCreds `yaml:"-"`
|
Creds ApiCreds `yaml:"-"`
|
||||||
Muted bool `yaml:"muted"`
|
/*mostly for mocking/faking api*/
|
||||||
DebugDump bool `yaml:"debug_dump"`
|
Muted bool `yaml:"-"`
|
||||||
|
DebugDump bool `yaml:"-"`
|
||||||
/*runtime*/
|
/*runtime*/
|
||||||
tokenExpired bool `yaml:"-"`
|
tokenExpired bool `yaml:"-"`
|
||||||
toPush []types.Event `yaml:"-"`
|
toPush []types.Event `yaml:"-"`
|
||||||
Http *sling.Sling `yaml:"-"`
|
Http *sling.Sling `yaml:"-"`
|
||||||
PusherTomb tomb.Tomb
|
PusherTomb tomb.Tomb `yaml:"-"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type ApiCreds struct {
|
type ApiCreds struct {
|
||||||
|
|
Loading…
Reference in a new issue