Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Credentials credentials.Config HTTPClient *http.Client Logger Logger }
Config stores the configuration of a DuoKey client: credentials needed to get an access token and http client.
type Logger ¶ added in v0.0.7
type Logger interface { Info(...interface{}) Infof(string, ...interface{}) }
Logger is a generic logging interface. Zap SugaredLogger and Logrus automatically implement this interface
func NewDefaultLogger ¶ added in v0.0.7
func NewDefaultLogger() Logger
NewDefaultLogger returns a Logger which will write log messages to stdout. Each log entry is prefixed with date, time, final file name element, and line number.
Click to show internal directories.
Click to hide internal directories.