registry

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 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.

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
	Ctx    context.Context
	Logger *zap.Logger

	// for `pg` handler
	PostgreSQLURL string

	// for `tigris` handler
	TigrisURL string
}

NewHandlerOpts represents configuration for constructing handlers.

Jump to

Keyboard shortcuts

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