transaction

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxFilter

type TxFilter struct {
}

TxFilter is an implemention of switch message filter, switch will use transaction filter to verify transaction message.

func NewTxFilter

func NewTxFilter() *TxFilter

create a new transaction filter instance.

func (*TxFilter) Verify

func (txValidator *TxFilter) Verify(portId int, msg interface{}) error

Verify verify a switch message whether is validated. return nil if message is validated, otherwise return relative error

Jump to

Keyboard shortcuts

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