Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingDatabaseName = errors.New("missing database name") ErrMissingTableName = errors.New("missing table name") ErrMalformedMessage = errors.New("malformed message") ErrUnknownBackend = errors.New("unknown backend") ErrInvalidDatabaseSpec = errors.New("invalid database specification") ErrMissingKey = errors.New("key mismatch") ErrUnknownULID = errors.New("unknown ULID") )
errors
View Source
var Create = func(theseOpts *proxy.Options) (proxy.Handler, proxy.Teardown, error) { m.Lock() opts = theseOpts m.Unlock() return handler, teardown, nil }
Create is the creation function for keyvalue endpoints
Functions ¶
func AddDbURLFunc ¶
AddDbURLFunc adds the DbURLFunc f to the collection of known DbURLFuncs.
func AddDefaults ¶
func AddDefaults(endpoint string, f DefaultsFunc)
AddDefaults adds the DefaultsFunc f, which should describe default values for endpoint, to the collection of known validators.
Types ¶
type DbURLFunc ¶
DbURLFunc is a function that takes a database specification and proxy options and returns a URL specifying that database.
type DefaultsFunc ¶
type DefaultsFunc func() map[string]interface{}
DefaultsFunc is a function that returns a JSON description of default values
Click to show internal directories.
Click to hide internal directories.