Documentation ¶
Index ¶
Constants ¶
View Source
const DriverTypeKey = "type"
Variables ¶
View Source
var ErrInvalidDriver = fmt.Errorf("not a valid Driver, try [%s]", strings.Join(_DriverNames, ", "))
View Source
var ErrNotFound = errors.New("key not found")
Functions ¶
func DriverNames ¶ added in v0.13.1
func DriverNames() []string
DriverNames returns a list of possible string values of Driver.
Types ¶
type Driver ¶ added in v0.13.1
type Driver string
Driver ENUM(legacy, bolt, file)
func DriverValues ¶ added in v0.13.1
func DriverValues() []Driver
DriverValues returns a list of the values for Driver
func ParseDriver ¶ added in v0.13.1
ParseDriver attempts to convert a string to a Driver.
func (*Driver) Get ¶ added in v0.13.1
func (x *Driver) Get() interface{}
Get implements the Golang flag.Getter interface func.
func (Driver) IsValid ¶ added in v0.13.1
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
Click to show internal directories.
Click to hide internal directories.