Documentation ¶
Index ¶
- Variables
- func NewNativeProcessor(compiler adapter.Compiler, config config.NativeProcessorConfig, ...) services.Processor
- func NewProcessorWithContractRepository(repo Repository, config config.NativeProcessorConfig, parentLogger log.Logger, ...) services.Processor
- func SanitizerConfigForProduction() *sanitizer.SanitizerConfig
- type CompilingRepository
- type CompositeRepository
- type Repository
Constants ¶
This section is empty.
Variables ¶
View Source
var LogTag = log.Service("processor-native")
Functions ¶
func NewNativeProcessor ¶
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)
}
Click to show internal directories.
Click to hide internal directories.