api

package
v0.2202.10 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package api defines the EnclaveRPC interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Frame

type Frame struct {
	Session            []byte `json:"session,omitempty"`
	UntrustedPlaintext string `json:"untrusted_plaintext,omitempty"`
	Payload            []byte `json:"payload,omitempty"`
}

Frame is an EnclaveRPC frame.

It is the Go analog of the Rust RPC frame defined in runtime/src/enclave_rpc/types.rs.

type PeerFeedback added in v0.2201.7

type PeerFeedback uint8

PeerFeedback is the feedback on the peer that handled the last RPC call.

const (
	PeerFeedbackSuccess PeerFeedback = 0
	PeerFeedbackFailure PeerFeedback = 1
	PeerFeedbackBadPeer PeerFeedback = 2
)

func (PeerFeedback) String added in v0.2201.7

func (pf PeerFeedback) String() string

String returns a string representation of peer feedback.

Jump to

Keyboard shortcuts

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