request

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: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisbandCluster

type DisbandCluster struct {
	bls.BaseMessage
	RequestID string `json:"request_id,omitempty"`
}

DisbandCluster describes the `MessageDisbandCluster` request payload. It is sent after head node receives the leaders execution response.

func (DisbandCluster) MarshalJSON

func (d DisbandCluster) MarshalJSON() ([]byte, error)

func (DisbandCluster) Type

func (DisbandCluster) Type() string

type Execute

type Execute struct {
	bls.BaseMessage

	execute.Request // execute request is embedded.

	Topic string `json:"topic,omitempty"`
}

Execute describes the `MessageExecute` request payload.

func (Execute) MarshalJSON

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

func (Execute) Response

func (e Execute) Response(c codes.Code, id string) *response.Execute

func (Execute) RollCall

func (e Execute) RollCall(id string, c consensus.Type) *RollCall

func (Execute) Type

func (Execute) Type() string

func (Execute) Valid

func (e Execute) Valid() error

func (Execute) WorkOrder

func (e Execute) WorkOrder(id string) *WorkOrder

type FormCluster

type FormCluster struct {
	bls.BaseMessage
	RequestID      string          `json:"request_id,omitempty"`
	Peers          []peer.ID       `json:"peers,omitempty"`
	Consensus      consensus.Type  `json:"consensus,omitempty"`
	ConnectionInfo []peer.AddrInfo `json:"connection_info,omitempty"`
}

FormCluster describes the `MessageFormCluster` request payload. It is sent on clustered execution of a request.

func (FormCluster) MarshalJSON

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

func (FormCluster) Response

func (f FormCluster) Response(c codes.Code) *response.FormCluster

func (FormCluster) Type

func (FormCluster) Type() string

type InstallFunction

type InstallFunction struct {
	bls.BaseMessage
	ManifestURL string `json:"manifest_url,omitempty"`
	CID         string `json:"cid,omitempty"`
}

InstallFunction describes the `MessageInstallFunction` request payload.

func (InstallFunction) MarshalJSON

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

func (InstallFunction) Response

func (InstallFunction) Type

func (InstallFunction) Type() string

func (InstallFunction) Valid

func (f InstallFunction) Valid() error

type RollCall

type RollCall struct {
	bls.BaseMessage
	FunctionID string              `json:"function_id,omitempty"`
	RequestID  string              `json:"request_id,omitempty"`
	Consensus  consensus.Type      `json:"consensus"`
	Attributes *execute.Attributes `json:"attributes,omitempty"`
}

RollCall describes the `MessageRollCall` message payload.

func (RollCall) MarshalJSON

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

func (RollCall) Response

func (r RollCall) Response(c codes.Code) *response.RollCall

func (RollCall) Type

func (RollCall) Type() string

type WorkOrder

type WorkOrder struct {
	bls.BaseMessage

	execute.Request // execute request is embedded

	RequestID string    `json:"request_id,omitempty"`
	Timestamp time.Time `json:"timestamp,omitempty"` // Execution request timestamp is a factor for PBFT.
}

func (WorkOrder) MarshalJSON

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

func (WorkOrder) Response

func (w WorkOrder) Response(c codes.Code, res execute.Result) *response.WorkOrder

func (WorkOrder) Type

func (WorkOrder) Type() string

Jump to

Keyboard shortcuts

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