Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PayloadName defines the name of the chat payload.
PayloadName = "chat"
)
Variables ¶
View Source
var Type = payload.NewType(payloadType, PayloadName)
Type represents the identifier which addresses the chat payload type.
Functions ¶
This section is empty.
Types ¶
type BlockReceivedEvent ¶ added in v0.9.2
type BlockReceivedEvent struct { From string To string Block string Timestamp time.Time BlockID string }
Event defines the information passed when a chat event fires.
type Events ¶
type Events struct {
BlockReceived *event.Event[*BlockReceivedEvent]
}
Events define events occurring within a Chat.
Click to show internal directories.
Click to hide internal directories.