| 23 | } |
| 24 | |
| 25 | type Auth struct { |
| 26 | UserName string `yaml:"username" json:"username"` |
| 27 | Token interface{} `yaml:"token" json:"token"` |
| 28 | LoginUrl string `yaml:"login_url" json:"login_url"` |
| 29 | CurrentUse bool `yaml:"current_use" json:"current_use"` |
| 30 | } |
| 31 | |
| 32 | func (auth Auth) IsNil() bool { |
| 33 | return auth.Token == "" || auth.LoginUrl == "" |
nothing calls this directly
no outgoing calls
no test coverage detected