response

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Execute

type Execute struct {
	RequestID string            `json:"request_id,omitempty"`
	Code      codes.Code        `json:"code,omitempty"`
	Results   execute.ResultMap `json:"results,omitempty"`
	Cluster   execute.Cluster   `json:"cluster,omitempty"`

	PBFT PBFTResultInfo `json:"pbft,omitempty"`
	// Signed digest of the response.
	Signature string `json:"signature,omitempty"`

	// Used to communicate the reason for failure to the user.
	Message string `json:"message,omitempty"`
}

Execute describes the response to the `MessageExecute` message.

func (Execute) MarshalJSON added in v0.5.0

func (e Execute) MarshalJSON() ([]byte, error)

func (*Execute) Sign added in v0.3.0

func (e *Execute) Sign(key crypto.PrivKey) error

func (Execute) Type

func (Execute) Type() string

func (Execute) VerifySignature added in v0.3.0

func (e Execute) VerifySignature(key crypto.PubKey) error

type FormCluster

type FormCluster struct {
	RequestID string         `json:"request_id,omitempty"`
	Code      codes.Code     `json:"code,omitempty"`
	Consensus consensus.Type `json:"consensus,omitempty"`
}

FormCluster describes the `MessageFormClusteRr` response.

func (FormCluster) MarshalJSON added in v0.5.0

func (f FormCluster) MarshalJSON() ([]byte, error)

func (FormCluster) Type

func (FormCluster) Type() string

type Health

type Health struct {
	Code int `json:"code,omitempty"`
}

Health describes the message sent as a health ping.

func (Health) MarshalJSON added in v0.5.0

func (h Health) MarshalJSON() ([]byte, error)

func (Health) Type

func (Health) Type() string

type InstallFunction

type InstallFunction struct {
	Code    codes.Code `json:"code,omitempty"`
	Message string     `json:"message,omitempty"`
	CID     string     `json:"cid,omitempty"`
}

InstallFunction describes the response to the `MessageInstallFunction` message.

func (InstallFunction) MarshalJSON added in v0.5.0

func (f InstallFunction) MarshalJSON() ([]byte, error)

func (InstallFunction) Type

func (InstallFunction) Type() string

type PBFTResultInfo added in v0.3.0

type PBFTResultInfo struct {
	View             uint      `json:"view"`
	RequestTimestamp time.Time `json:"request_timestamp,omitempty"`
	Replica          peer.ID   `json:"replica,omitempty"`
}

type RollCall

type RollCall struct {
	Code       codes.Code `json:"code,omitempty"`
	FunctionID string     `json:"function_id,omitempty"`
	RequestID  string     `json:"request_id,omitempty"`
}

RollCall describes the `MessageRollCall` response payload.

func (RollCall) MarshalJSON added in v0.5.0

func (r RollCall) MarshalJSON() ([]byte, error)

func (RollCall) Type

func (RollCall) Type() string

Jump to

Keyboard shortcuts

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