native

package
v1.3.12 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogTag = log.Service("processor-native")

Functions

func NewNativeProcessor

func NewNativeProcessor(compiler adapter.Compiler, config config.NativeProcessorConfig, parentLogger log.Logger, metricFactory metric.Factory) services.Processor

func NewProcessorWithContractRepository added in v1.3.0

func NewProcessorWithContractRepository(repo Repository, config config.NativeProcessorConfig, parentLogger log.Logger, metricFactory metric.Factory) services.Processor

func SanitizerConfigForProduction added in v1.2.1

func SanitizerConfigForProduction() *sanitizer.SanitizerConfig

Types

type CompilingRepository added in v1.3.0

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

func NewCompilingRepository added in v1.3.0

func NewCompilingRepository(compiler adapter.Compiler, cfg config.NativeProcessorConfig, logger log.Logger, metricFactory metric.Factory) *CompilingRepository

func (*CompilingRepository) ContractInfo added in v1.3.0

func (r *CompilingRepository) ContractInfo(ctx context.Context, executionContextId primitives.ExecutionContextId, contractName string) (*sdkContext.ContractInfo, error)

func (*CompilingRepository) SetSdkHandler added in v1.3.0

func (r *CompilingRepository) SetSdkHandler(handler handlers.ContractSdkCallHandler)

type CompositeRepository added in v1.3.0

type CompositeRepository struct {
	Nested []Repository
}

func (*CompositeRepository) ContractInfo added in v1.3.0

func (c *CompositeRepository) ContractInfo(ctx context.Context, executionContextId primitives.ExecutionContextId, contractName string) (*sdkContext.ContractInfo, error)

type Repository added in v1.3.0

type Repository interface {
	ContractInfo(ctx context.Context, executionContextId primitives.ExecutionContextId, contractName string) (*sdkContext.ContractInfo, error)
}

Jump to

Keyboard shortcuts

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