Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidOption if not supported ErrInvalidOption = errors.New(`invalid option`) )
View Source
var (
ErrUndefinedDriver = errors.New(`[storage::registry] undefined driver`)
)
Error list...
Functions ¶
func RegisterConnector ¶
func RegisterConnector(driver string, conn connector)
RegisterConnector function
Types ¶
type Option ¶ added in v0.2.1
type Option func(cnf *Config)
Option of the connection
func WithConnect ¶ added in v0.2.1
WithConnect to the database
func WithConnectURL ¶ added in v0.4.0
WithConnectURL to the database
func WithObjectConfig ¶ added in v0.2.1
WithObjectConfig converts Object to JSON storage config
func WithRawConfig ¶ added in v0.2.1
func WithRawConfig(raw json.RawMessage) Option
WithRawConfig storage config
Click to show internal directories.
Click to hide internal directories.