bincc

package
v0.0.0-...-fb4f826 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const ChaincodeHardTimeout = 10 * time.Second
View Source
const MessageSizeLimit = 100 * 1000 * 1000

Variables

This section is empty.

Functions

func RunChaincode

func RunChaincode(cc common.Chaincode)

Types

type CallData

type CallData struct {
	Input       []byte
	Sender      []byte
	BlockHash   []byte
	BlockHeight uint64
	CallType    CallType
}

type CallType

type CallType int
const (
	CallTypeInit CallType = iota
	CallTypeInvoke
	CallTypeQuery
)

type Client

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

func (*Client) BlockHash

func (c *Client) BlockHash() []byte

func (*Client) BlockHeight

func (c *Client) BlockHeight() uint64

func (*Client) GetState

func (c *Client) GetState(key []byte) []byte

func (*Client) Input

func (c *Client) Input() []byte

func (*Client) Sender

func (c *Client) Sender() []byte

func (*Client) SetState

func (c *Client) SetState(key, value []byte)

type CodeDriver

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

func NewCodeDriver

func NewCodeDriver(codeDir string, timeout time.Duration) *CodeDriver

func (*CodeDriver) GetInstance

func (drv *CodeDriver) GetInstance(codeID []byte) (common.Chaincode, error)

func (*CodeDriver) Install

func (drv *CodeDriver) Install(codeID, data []byte) error

type DownStream

type DownStream struct {
	Value []byte
	Error string
}

type Runner

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

func (*Runner) Init

func (r *Runner) Init(ctx common.CallContext) error

func (*Runner) Invoke

func (r *Runner) Invoke(ctx common.CallContext) error

func (*Runner) Query

func (r *Runner) Query(ctx common.CallContext) ([]byte, error)

func (*Runner) SetTxTrk

func (r *Runner) SetTxTrk(txTrk *common.StateTracker)

type UpStream

type UpStream struct {
	Key   []byte
	Value []byte
	Error string
	Type  UpStreamType
}

type UpStreamType

type UpStreamType int
const (
	UpStreamGetState UpStreamType = iota
	UpStreamSetState
	UpStreamResult
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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