txhandlerfactory

package
v1.3.18 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransactionHandler

func NewTransactionHandler(ctx context.Context, baseConfig config.Section, name string) (txhandler.TransactionHandler, error)

func RegisterHandler

func RegisterHandler(factory Factory) string

Types

type Factory

type Factory interface {
	Name() string
	InitConfig(conf config.Section)
	NewTransactionHandler(ctx context.Context, conf config.Section) (txhandler.TransactionHandler, error)
}

Jump to

Keyboard shortcuts

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