request

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: 6 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 {
	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 added in v0.5.0

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

func (DisbandCluster) Type

func (DisbandCluster) Type() string

type Execute

type Execute struct {
	execute.Request // execute request is embedded.

	Topic     string    `json:"topic,omitempty"`
	RequestID string    `json:"request_id,omitempty"` // RequestID may be set initially, if the execution request is relayed via roll-call.
	Timestamp time.Time `json:"timestamp,omitempty"`  // Execution request timestamp is a factor for PBFT.
}

Execute describes the `MessageExecute` request payload.

func (Execute) MarshalJSON added in v0.5.0

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

func (Execute) Type

func (Execute) Type() string

type FormCluster

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

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

func (FormCluster) MarshalJSON added in v0.5.0

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

func (FormCluster) Type

func (FormCluster) Type() string

type InstallFunction

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

InstallFunction describes the `MessageInstallFunction` request payload.

func (InstallFunction) MarshalJSON added in v0.5.0

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

func (InstallFunction) Type

func (InstallFunction) Type() string

type RollCall

type RollCall struct {
	Origin     peer.ID             `json:"origin,omitempty"` // Origin is the peer that initiated the roll call.
	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 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