package
0.1.16
Repository: https://github.com/aukilabs/hagall-common.git
Documentation: pkg.go.dev

# Functions

MsgFromProto builds Msg from ProtoMsg.
No description provided by the author
ProtoMsgType returns the type of the protobuf message as a string.
Receive receives the incoming message from the web socket.
Send sends the given msg through the web socket.

# Constants

Error for when an entity component type already exists.
Error for when an entity does not exist.
Error for when a message is received without a timestamp set.
Error for when receiving a message fails.
Error for when sending a message fails.
Error for when a message is skipped by a module.
Error for when a participant sends a request that requires that it already joined a session.

# Variables

Error returned when a module skipped handling a message.

# Structs

Msg represents a Hagall WebSocket message to be handled.

# Interfaces

Consumer represents a message consumer.
Dispatcher represents a message dispatcher that decides if and when a message can be consumed.
ProtoMsg is the interface that describes a protobuf message.
No description provided by the author

# Type aliases

Receiver represents a function that receives a message.
Sender represents a function that sends a message.