tprocessor

package
v0.0.0-...-497026d Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Launch

func Launch(familyName string)

Launch launch transaction processor for this family name

func ShutDown

func ShutDown(familyName string)

ShutDown decrement reference count and shutdown transaction processor for family name if 0

Types

type Opts

type Opts struct {
	FamilyName string `short:"f" long:"family_name" description:"transaction family name, the source account number at this time"`
}

Opts is for parsing command line options

type TpHandler

type TpHandler struct {
	TpName    string // this is to be used as the transactions family name
	TpVersion string // this the family version
}

TpHandler is the handler to register with the validator

func (*TpHandler) Apply

Apply is the main logic

func (*TpHandler) FamilyName

func (r *TpHandler) FamilyName() string

FamilyName returns prefix for transactions handled by this handler

func (*TpHandler) FamilyVersions

func (r *TpHandler) FamilyVersions() []string

FamilyVersions as the name says...

func (*TpHandler) Namespaces

func (r *TpHandler) Namespaces() []string

Namespaces for transactions

Jump to

Keyboard shortcuts

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