sdkimpl

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: MIT Imports: 8 Imported by: 0

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) Rand

func (r *RuntimeBase) Rand() (*rand.Rand, error)

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
}

Jump to

Keyboard shortcuts

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