Documentation ¶
Overview ¶
Package registry provides a registry of handlers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handlers ¶
func Handlers() []string
Handlers returns a list of all handlers registered at compile-time.
func NewHandler ¶
func NewHandler(name string, opts *NewHandlerOpts) (handlers.Interface, error)
NewHandler constructs a new handler.
Types ¶
type NewHandlerOpts ¶
type NewHandlerOpts struct { // for all handlers Logger *zap.Logger Metrics *connmetrics.ConnMetrics StateProvider *state.Provider // for `pg` handler PostgreSQLURL string // for `sqlite` handler SQLiteURI string // for `tigris` handler TigrisURL string TigrisClientID string TigrisClientSecret string // for `hana` handler HANAURL string TestOpts }
NewHandlerOpts represents configuration for constructing handlers.
Click to show internal directories.
Click to hide internal directories.