common

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoRequest

type EchoRequest struct {
	Message string `json:"message"`
}

EchoRequest is used to ping the Rusk server.

func (*EchoRequest) Copy

func (e *EchoRequest) Copy() *EchoRequest

Copy complies with message.Safe interface. It returns a deep copy of the message safe to publish to multiple subscribers.

type EchoResponse

type EchoResponse struct {
	Message string `json:"message"`
}

EchoResponse is what the Rusk server sends back after an `EchoRequest`.

func (*EchoResponse) Copy

func (e *EchoResponse) Copy() *EchoResponse

Copy complies with message.Safe interface. It returns a deep copy of the message safe to publish to multiple subscribers.

Jump to

Keyboard shortcuts

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