registry

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: Apache-2.0 Imports: 7 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.

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.

type TestOpts added in v1.0.0

type TestOpts struct {
	DisableFilterPushdown bool
	EnableSortPushdown    bool
	EnableCursors         bool
}

TestOpts represents experimental configuration options.

Jump to

Keyboard shortcuts

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