Documentation
¶
Index ¶
Constants ¶
View Source
const DriverTypeKey = "type"
Variables ¶
View Source
var ErrInvalidDriver = fmt.Errorf("not a valid Driver, try [%s]", strings.Join(_DriverNames, ", "))
Functions ¶
func DriverNames ¶
func DriverNames() []string
DriverNames returns a list of possible string values of Driver.
Types ¶
type Driver ¶
type Driver string
Driver ENUM(legacy, bolt, file)
func DriverValues ¶
func DriverValues() []Driver
DriverValues returns a list of the values for Driver
func ParseDriver ¶
ParseDriver attempts to convert a string to a Driver.
func (*Driver) Get ¶
func (x *Driver) Get() interface{}
Get implements the Golang flag.Getter interface func.
func (Driver) IsValid ¶
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.