Documentation
¶
Index ¶
- type ContractRequester
- func (cr *ContractRequester) Call(ctx context.Context, ref *insolar.Reference, method string, ...) (insolar.Reply, *insolar.Reference, error)
- func (cr *ContractRequester) ReceiveResult(ctx context.Context, msg *message.Message) error
- func (cr *ContractRequester) SendRequest(ctx context.Context, inMsg insolar.Payload) (insolar.Reply, *insolar.Reference, error)
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) ReceiveResult ¶ added in v0.7.5
Click to show internal directories.
Click to hide internal directories.