chain

package
v0.0.0-...-c8b884f Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewChainGroup

func NewChainGroup(chains ...chain.Chainer) *chainGroup

func NewRoute

func NewRoute(opts ...RouteOption) *route

Types

type Chain

type Chain struct {
	// contains filtered or unexported fields
}

func NewChain

func NewChain(name string, opts ...ChainOption) *Chain

func (*Chain) AddHop

func (c *Chain) AddHop(hop hop.Hop)

func (*Chain) Marker

func (c *Chain) Marker() selector.Marker

Marker implements selector.Markable interface.

func (*Chain) Metadata

func (c *Chain) Metadata() metadata.Metadata

Metadata implements metadata.Metadatable interface.

func (*Chain) Name

func (c *Chain) Name() string

func (*Chain) Route

func (c *Chain) Route(ctx context.Context, network, address string, opts ...chain.RouteOption) chain.Route

type ChainOption

type ChainOption func(*ChainOptions)

func LoggerChainOption

func LoggerChainOption(logger logger.Logger) ChainOption

func MetadataChainOption

func MetadataChainOption(md metadata.Metadata) ChainOption

type ChainOptions

type ChainOptions struct {
	Metadata metadata.Metadata
	Logger   logger.Logger
}

type RouteOption

type RouteOption func(*RouteOptions)

func ChainRouteOption

func ChainRouteOption(c chain.Chainer) RouteOption

type RouteOptions

type RouteOptions struct {
	Chain chain.Chainer
}

Jump to

Keyboard shortcuts

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