authenticator is a singleton instance of the authenticator.
| 18 | |
| 19 | // authenticator is a singleton instance of the authenticator. |
| 20 | type authenticator struct { |
| 21 | name string |
| 22 | codeLength int |
| 23 | maxCodeValue *big.Int |
| 24 | lifetime time.Duration |
| 25 | maxRetries int |
| 26 | } |
| 27 | |
| 28 | // Init initializes the authenticator: parses the config and sets internal state. |
| 29 | func (ca *authenticator) Init(jsonconf json.RawMessage, name string) error { |
nothing calls this directly
no outgoing calls
no test coverage detected