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 ¶
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 (f InstallFunction) Response(c codes.Code) *response.InstallFunction
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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.