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.
Click to show internal directories.
Click to hide internal directories.