Documentation ¶
Overview ¶
Package registry provides a registry of handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloseBackendFunc ¶
type CloseBackendFunc func()
CloseBackendFunc represents a function that closes a backend.
func NewHandler ¶
func NewHandler(name string, opts *NewHandlerOpts) (*handler.Handler, CloseBackendFunc, error)
NewHandler constructs a new handler.
The caller is responsible to call CloseBackendFunc when the handler is no longer needed.
type NewHandlerOpts ¶
type NewHandlerOpts struct { // for all backends Logger *zap.Logger ConnMetrics *connmetrics.ConnMetrics StateProvider *state.Provider TCPHost string ReplSetName string // for `postgresql` handler PostgreSQLURL string // for `sqlite` handler SQLiteURL string // for `hana` handler HANAURL string // for `mysql` handler MySQLURL string TestOpts // contains filtered or unexported fields }
NewHandlerOpts represents configuration for constructing handlers.
Click to show internal directories.
Click to hide internal directories.