tesseract

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2018 License: Apache-2.0 Imports: 12 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

This section is empty.

Variables

View Source
var ErrFailedPullImage = errors.New("failed to pull image")

Functions

This section is empty.

Types

type Config

type Config struct {
	ShPath string
}

type ContainerID added in v0.1.1

type ContainerID = string

type ICodeInfo

type ICodeInfo struct {
	Name        string
	Directory   string
	DockerImage docker.Image
	// contains filtered or unexported fields
}

type Tesseract

type Tesseract struct {
	Config  Config
	Clients map[ContainerID]rpc.Client
}

func New added in v0.1.1

func New(c Config) *Tesseract

func (*Tesseract) QueryOrInvoke

func (t *Tesseract) QueryOrInvoke(containerID string, txInfo cell.TxInfo) (*pb.Response, error)

func (*Tesseract) SetupContainer

func (t *Tesseract) SetupContainer(iCodeInfo ICodeInfo) (string, error)

Deploy create Docker Container with running ShimCode and copying SmartContract. todo sh를 실행시키는데 시간이 많이 걸려서 client connect전에 time을 걸어놓았음 다르게 처리할 방법이 필요함

func (*Tesseract) StopContainerById added in v0.1.1

func (t *Tesseract) StopContainerById(id ContainerID) error

func (*Tesseract) StopContainers added in v0.1.1

func (t *Tesseract) StopContainers()

Directories

Path Synopsis
rpc
sample
db
grpc/proto
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.
grpc_stream/proto_stream
Package proto_stream is a generated protocol buffer package.
Package proto_stream is a generated protocol buffer package.
test

Jump to

Keyboard shortcuts

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