ExampleConfig demonstrates how to implement the Config interface.
| 8 | |
| 9 | // ExampleConfig demonstrates how to implement the Config interface. |
| 10 | type ExampleConfig struct { |
| 11 | addr string |
| 12 | user string |
| 13 | password string |
| 14 | realm string |
| 15 | tokenID string |
| 16 | tokenSecret string |
| 17 | insecure bool |
| 18 | } |
| 19 | |
| 20 | func NewExampleConfig(addr, user, password, realm string, insecure bool) *ExampleConfig { |
| 21 | return &ExampleConfig{ |
nothing calls this directly
no outgoing calls
no test coverage detected