Documentation ¶
Overview ¶
package external defines some interfaces for external resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Errorw ¶
func Errorw(msg string, keyvals ...interface{})
Errorw calls Errorw on the default Resources.
Types ¶
type Logger ¶
type Logger interface { Infow(msg string, keyvals ...interface{}) Errorw(msg string, keyvals ...interface{}) }
Logger is used when logging is required. It is built to match the uber/zap SugaredLogger type.
type Resources ¶
Resources is a collection of all the external resources. It implements all of the methods of the fields but in a nil-safe way.
var Default Resources
Default is the default set of resources. Can be overridden by plugins.
Click to show internal directories.
Click to hide internal directories.