registry

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 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
	CappedCleanupInterval   time.Duration
	CappedCleanupPercentage uint8
	EnableNewAuth           bool
	// 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