adapter

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const GC_CACHE_PATH = "native-cache"
View Source
const MAX_COMPILATION_TIME = 5 * time.Second
View Source
const MAX_WARM_UP_COMPILATION_TIME = 15 * time.Second
View Source
const SHARED_OBJECT_PATH = "native-bin"
View Source
const SOURCE_CODE_PATH = "native-src"

Variables

View Source
var LogTag = log.String("adapter", "processor-native")

Functions

This section is empty.

Types

type Compiler

type Compiler interface {
	Compile(ctx context.Context, code string) (*sdkContext.ContractInfo, error)
}

func NewNativeCompiler

func NewNativeCompiler(config Config, logger log.BasicLogger) Compiler

type Config

type Config interface {
	ProcessorArtifactPath() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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