tesseract

package module
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

README

Tesseract

Tesseract is a library to run SmartContract on Docker Container.

Architecture

Overview of the architecture of Tesseract can be found in the following link.

ARCHITECTURE

Lincese

Tesseract source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file.

Documentation

Index

Constants

View Source
const (
	DefaultImageName = "golang"
	DefaultImageTag  = "1.9"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CallBack added in v0.2.1

type CallBack func(response *pb.Response, err error)

type Container added in v0.2.2

type Container interface {

	// send request to container
	Request(req Request, callback CallBack) error

	// close container
	Close() error

	// get container ID
	GetID() string
}

type ContainerConfig added in v0.2.2

type ContainerConfig struct {
	Name           string
	Url            string
	Directory      string
	ContainerImage ContainerImage
	// contains filtered or unexported fields
}

type ContainerFactory added in v0.2.2

type ContainerFactory interface {
	Create(ContainerConfig) Container
}

type ContainerID added in v0.1.1

type ContainerID = string

type ContainerImage added in v0.2.2

type ContainerImage struct {
	Name string
	Tag  string
}

func GetDefaultImage added in v0.2.2

func GetDefaultImage() ContainerImage

func (ContainerImage) GetFullName added in v0.2.2

func (dc ContainerImage) GetFullName() string

type Port added in v0.2.2

type Port struct {
	// Host IP address that the container's port is mapped to
	IP string

	// Port on the container
	PrivatePort int

	// Port exposed on the host
	PublicPort int
}

type Request added in v0.2.0

type Request struct {
	Uuid     string
	TypeName string
	FuncName string
	Args     []string
}

Directories

Path Synopsis
mock

Jump to

Keyboard shortcuts

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