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 Body ¶ added in v0.2300.0
type Body struct { Success cbor.RawMessage `json:",omitempty"` Error *string `json:",omitempty"` }
Body is an EnclaveRPC response body.
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 Message ¶ added in v0.2300.0
type Message struct {
Response *Response `json:"response"`
}
Message is an EnclaveRPC protocol message.
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.