contractrequester

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractRequester

type ContractRequester struct {
	MessageBus   core.MessageBus   `inject:""`
	PulseStorage core.PulseStorage `inject:""`
	ResultMutex  sync.Mutex
	ResultMap    map[uint64]chan *message.ReturnResults
	Sequence     uint64
}

ContractRequester helps to call contracts

func New

func New() (*ContractRequester, error)

New creates new ContractRequester

func (*ContractRequester) CallConstructor added in v0.7.5

func (cr *ContractRequester) CallConstructor(ctx context.Context, base core.Message, async bool,
	prototype *core.RecordRef, to *core.RecordRef, method string,
	argsIn core.Arguments, saveAs int) (*core.RecordRef, error)

func (*ContractRequester) CallMethod added in v0.7.5

func (cr *ContractRequester) CallMethod(ctx context.Context, base core.Message, async bool, ref *core.RecordRef, method string, argsIn core.Arguments, mustPrototype *core.RecordRef) (core.Reply, error)

func (*ContractRequester) ReceiveResult added in v0.7.5

func (cr *ContractRequester) ReceiveResult(ctx context.Context, parcel core.Parcel) (core.Reply, error)

func (*ContractRequester) SendRequest

func (cr *ContractRequester) SendRequest(ctx context.Context, ref *core.RecordRef, method string, argsIn []interface{}) (core.Reply, error)

SendRequest makes synchronously call to method of contract by its ref without additional information

func (*ContractRequester) Start added in v0.7.5

func (cr *ContractRequester) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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