Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeRuntime ¶
type NodeRuntime struct {
RuntimeBase
}
func (*NodeRuntime) IsNodeRuntime ¶
func (n *NodeRuntime) IsNodeRuntime()
type Runtime ¶
type Runtime struct {
RuntimeBase
// contains filtered or unexported fields
}
func (*Runtime) GetSecret ¶
func (d *Runtime) GetSecret(req *pb.SecretRequest) sdk.Promise[*pb.Secret]
func (*Runtime) RunInNodeMode ¶
func (d *Runtime) RunInNodeMode(fn func(nodeRuntime sdk.NodeRuntime) *pb.SimpleConsensusInputs) sdk.Promise[values.Value]
type RuntimeBase ¶
type RuntimeBase struct {
MaxResponseSize uint64
RuntimeHelpers
Mode pb.Mode
// contains filtered or unexported fields
}
func (*RuntimeBase) CallCapability ¶
func (r *RuntimeBase) CallCapability(request *pb.CapabilityRequest) sdk.Promise[*pb.CapabilityResponse]
func (*RuntimeBase) Int63 ¶
func (r *RuntimeBase) Int63() int64
func (*RuntimeBase) Seed ¶
func (r *RuntimeBase) Seed(seed int64)
func (*RuntimeBase) Uint64 ¶
func (r *RuntimeBase) Uint64() uint64
type RuntimeHelpers ¶
type RuntimeHelpers interface {
Call(request *pb.CapabilityRequest) error
Await(request *pb.AwaitCapabilitiesRequest, maxResponseSize uint64) (*pb.AwaitCapabilitiesResponse, error)
GetSecrets(request *pb.GetSecretsRequest, maxResponseSize uint64) error
AwaitSecrets(request *pb.AwaitSecretsRequest, maxResponseSize uint64) (*pb.AwaitSecretsResponse, error)
SwitchModes(mode pb.Mode)
GetSource(mode pb.Mode) rand.Source
}
Click to show internal directories.
Click to hide internal directories.