contractrequester

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 26 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 {
	Sender                     bus.Sender
	PulseAccessor              pulse.Accessor
	JetCoordinator             jet.Coordinator
	PlatformCryptographyScheme insolar.PlatformCryptographyScheme

	// TODO: remove this hack in INS-3341
	// we need ResultMatcher, not Logicrunner
	LR insolar.LogicRunner

	FlowDispatcher dispatcher.Dispatcher

	ResultMutex sync.Mutex
	ResultMap   map[[insolar.RecordHashSize]byte]chan *payload.ReturnResults
	// contains filtered or unexported fields
}

ContractRequester helps to call contracts

func New

func New(
	sender bus.Sender,
	pulses pulse.Accessor,
	jetCoordinator jet.Coordinator,
	pcs insolar.PlatformCryptographyScheme,
) (*ContractRequester, error)

New creates new ContractRequester

func (*ContractRequester) Call added in v0.9.0

func (cr *ContractRequester) Call(
	ctx context.Context, ref *insolar.Reference, method string, argsIn []interface{}, pulse insolar.PulseNumber,
) (insolar.Reply, *insolar.Reference, error)

func (*ContractRequester) ReceiveResult added in v0.7.5

func (cr *ContractRequester) ReceiveResult(ctx context.Context, msg *message.Message) error

func (*ContractRequester) SendRequest

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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