Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Execute ¶
type Execute struct {
blockless.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 ¶ added in v0.5.0
func (*Execute) WithCluster ¶ added in v0.7.0
func (*Execute) WithErrorMessage ¶ added in v0.7.0
type FormCluster ¶
type FormCluster struct {
blockless.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 ¶ added in v0.5.0
func (f FormCluster) MarshalJSON() ([]byte, error)
func (FormCluster) Type ¶
func (FormCluster) Type() string
func (*FormCluster) WithConsensus ¶ added in v0.7.0
func (f *FormCluster) WithConsensus(c consensus.Type) *FormCluster
type Health ¶
type Health struct {
blockless.BaseMessage
Code int `json:"code,omitempty"`
}
Health describes the message sent as a health ping.
func (Health) MarshalJSON ¶ added in v0.5.0
type InstallFunction ¶
type InstallFunction struct {
blockless.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 ¶ added in v0.5.0
func (f InstallFunction) MarshalJSON() ([]byte, error)
func (InstallFunction) Type ¶
func (InstallFunction) Type() string
type RollCall ¶
type RollCall struct {
blockless.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 ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.