adapter

package
v0.0.0-...-c26b842 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Topic   string                 `json:"topic"`
	Message map[string]interface{} `json:"message"`
}

type MessageAdapter

type MessageAdapter struct {
	ServerUrl string
}

func NewMessageAdapter

func NewMessageAdapter() (*MessageAdapter, error)

func (*MessageAdapter) CreateMessage

func (adapter *MessageAdapter) CreateMessage(context *util.Context, message *Message, lobbyId uuid.UUID, msgId string, senderPlayerId uuid.UUID) error

func (*MessageAdapter) CreateMessageId

func (adapter *MessageAdapter) CreateMessageId(context *util.Context, lobbyId uuid.UUID, senderPlayerId uuid.UUID) (string, error)

Jump to

Keyboard shortcuts

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