response

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 5 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 {
	bls.BaseMessage
	RequestID string            `json:"request_id,omitempty"`
	Code      codes.Code        `json:"code,omitempty"`
	Results   execute.ResultMap `json:"results,omitempty"`
	Cluster   execute.Cluster   `json:"cluster,omitempty"`

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

Execute describes the response to the `MessageExecute` message.

func (Execute) MarshalJSON

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

func (Execute) Type

func (Execute) Type() string

func (*Execute) WithCluster

func (e *Execute) WithCluster(c execute.Cluster) *Execute

func (*Execute) WithErrorMessage

func (e *Execute) WithErrorMessage(err error) *Execute

func (*Execute) WithResults

func (e *Execute) WithResults(r execute.ResultMap) *Execute

type FormCluster

type FormCluster struct {
	bls.BaseMessage
	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

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

func (FormCluster) Type

func (FormCluster) Type() string

func (*FormCluster) WithConsensus

func (f *FormCluster) WithConsensus(c consensus.Type) *FormCluster

type Health

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

Health describes the message sent as a health ping.

func (Health) MarshalJSON

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

func (Health) Type

func (Health) Type() string

type InstallFunction

type InstallFunction struct {
	bls.BaseMessage
	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

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

func (InstallFunction) Type

func (InstallFunction) Type() string

type RollCall

type RollCall struct {
	bls.BaseMessage
	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

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

func (RollCall) Type

func (RollCall) Type() string

type WorkOrder

type WorkOrder struct {
	bls.BaseMessage

	RequestID string             `json:"request_id,omitempty"`
	Code      codes.Code         `json:"code,omitempty"`
	Result    execute.NodeResult `json:"result,omitempty"`

	ErrorMessage string `json:"error_message,omitempty"`
}

func (WorkOrder) MarshalJSON

func (w WorkOrder) MarshalJSON() ([]byte, error)

func (WorkOrder) Type

func (WorkOrder) Type() string

func (*WorkOrder) WithErrorMessage

func (w *WorkOrder) WithErrorMessage(err error) *WorkOrder

func (*WorkOrder) WithMetadata

func (w *WorkOrder) WithMetadata(m any) *WorkOrder

Jump to

Keyboard shortcuts

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