containers

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterceptorsContainer added in v1.0.3

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

InterceptorsContainer is an interceptors holder organized by type

func NewInterceptorsContainer

func NewInterceptorsContainer() *InterceptorsContainer

NewInterceptorsContainer will create a new instance of a container

func (*InterceptorsContainer) Add added in v1.0.3

func (ic *InterceptorsContainer) Add(key string, interceptor process.Interceptor) error

Add will add an object at a given key. Returns an error if the element already exists

func (*InterceptorsContainer) AddMultiple added in v1.0.3

func (ic *InterceptorsContainer) AddMultiple(keys []string, interceptors []process.Interceptor) error

AddMultiple will add objects with given keys. Returns an error if one element already exists, lengths mismatch or an interceptor is nil

func (*InterceptorsContainer) Get added in v1.0.3

Get returns the object stored at a certain key. Returns an error if the element does not exist

func (*InterceptorsContainer) Len added in v1.0.3

func (ic *InterceptorsContainer) Len() int

Len returns the length of the added objects

func (*InterceptorsContainer) Remove added in v1.0.3

func (ic *InterceptorsContainer) Remove(key string)

Remove will remove an object at a given key

func (*InterceptorsContainer) Replace added in v1.0.3

func (ic *InterceptorsContainer) Replace(key string, interceptor process.Interceptor) error

Replace will add (or replace if it already exists) an object at a given key

type IntermediateTransactionHandlersContainer added in v1.0.11

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

IntermediateTransactionHandlersContainer is an IntermediateTransactionHandlers holder organized by type

func NewIntermediateTransactionHandlersContainer

func NewIntermediateTransactionHandlersContainer() *IntermediateTransactionHandlersContainer

NewIntermediateTransactionHandlersContainer will create a new instance of a container

func (*IntermediateTransactionHandlersContainer) Add added in v1.0.11

Add will add an object at a given key. Returns an error if the element already exists

func (*IntermediateTransactionHandlersContainer) AddMultiple added in v1.0.11

func (ppc *IntermediateTransactionHandlersContainer) AddMultiple(keys []block.Type, IntermediateTransactionHandlers []process.IntermediateTransactionHandler) error

AddMultiple will add objects with given keys. Returns an error if one element already exists, lengths mismatch or an interceptor is nil

func (*IntermediateTransactionHandlersContainer) Get added in v1.0.11

Get returns the object stored at a certain key. Returns an error if the element does not exist

func (*IntermediateTransactionHandlersContainer) Keys added in v1.0.11

Keys returns all the existing keys in the container

func (*IntermediateTransactionHandlersContainer) Len added in v1.0.11

Len returns the length of the added objects

func (*IntermediateTransactionHandlersContainer) Remove added in v1.0.11

Remove will remove an object at a given key

func (*IntermediateTransactionHandlersContainer) Replace added in v1.0.11

Replace will add (or replace if it already exists) an object at a given key

type PreProcessorsContainer added in v1.0.11

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

PreProcessorsContainer is an PreProcessors holder organized by type

func NewPreProcessorsContainer

func NewPreProcessorsContainer() *PreProcessorsContainer

NewPreProcessorsContainer will create a new instance of a container

func (*PreProcessorsContainer) Add added in v1.0.11

func (ppc *PreProcessorsContainer) Add(key block.Type, preProcessor process.PreProcessor) error

Add will add an object at a given key. Returns an error if the element already exists

func (*PreProcessorsContainer) AddMultiple added in v1.0.11

func (ppc *PreProcessorsContainer) AddMultiple(keys []block.Type, PreProcessors []process.PreProcessor) error

AddMultiple will add objects with given keys. Returns an error if one element already exists, lengths mismatch or an interceptor is nil

func (*PreProcessorsContainer) Get added in v1.0.11

Get returns the object stored at a certain key. Returns an error if the element does not exist

func (*PreProcessorsContainer) Keys added in v1.0.11

func (ppc *PreProcessorsContainer) Keys() []block.Type

func (*PreProcessorsContainer) Len added in v1.0.11

func (ppc *PreProcessorsContainer) Len() int

Len returns the length of the added objects

func (*PreProcessorsContainer) Remove added in v1.0.11

func (ppc *PreProcessorsContainer) Remove(key block.Type)

Remove will remove an object at a given key

func (*PreProcessorsContainer) Replace added in v1.0.11

func (ppc *PreProcessorsContainer) Replace(key block.Type, preProcessor process.PreProcessor) error

Replace will add (or replace if it already exists) an object at a given key

Jump to

Keyboard shortcuts

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