registry

package
v1.21.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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.

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.

type TestOpts

type TestOpts struct {
	DisablePushdown         bool
	EnableNestedPushdown    bool
	CappedCleanupInterval   time.Duration
	CappedCleanupPercentage uint8
	EnableNewAuth           bool
	BatchSize               int
	// contains filtered or unexported fields
}

TestOpts represents experimental configuration options.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL