fabric: github.com/hyperledger/fabric/core/handlers/validation/builtin Index | Files | Directories

package builtin

import "github.com/hyperledger/fabric/core/handlers/validation/builtin"

Index

Package Files

default_validation.go

type DefaultValidation Uses

type DefaultValidation struct {
    Capabilities    Capabilities
    TxValidatorV1_2 TransactionValidator
    TxValidatorV1_3 TransactionValidator
}

func (*DefaultValidation) Init Uses

func (v *DefaultValidation) Init(dependencies ...validation.Dependency) error

func (*DefaultValidation) Validate Uses

func (v *DefaultValidation) Validate(block *common.Block, namespace string, txPosition int, actionPosition int, contextData ...validation.ContextDatum) error

type DefaultValidationFactory Uses

type DefaultValidationFactory struct {
}

func (*DefaultValidationFactory) New Uses

func (*DefaultValidationFactory) New() validation.Plugin

type TransactionValidator Uses

type TransactionValidator interface {
    Validate(block *common.Block, namespace string, txPosition int, actionPosition int, policy []byte) commonerrors.TxValidationError
}

go:generate mockery -dir . -name TransactionValidator -case underscore -output mocks/

Directories

PathSynopsis
mocksCode generated by mockery v1.0.0.
v12
v12/mocksCode generated by mockery v1.0.0.
v13
v13/mocksCode generated by mockery v1.0.0.

Package builtin imports 13 packages (graph) and is imported by 1 packages. Updated 2019-08-06. Refresh now. Tools for package owners.