games

package
v0.0.0-...-8be9ec9 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

type Game interface {
	OnMsg(*models.GameSession, GameMsg) (interface{}, GameReply, error)
	NewState() interface{}
	Name() string
	Summary() string
	Example() string
}

type GameAttachment

type GameAttachment struct {
	Url       string
	MediaType string
}

type GameMsg

type GameMsg struct {
	Id      string
	From    string
	To      []string
	Msg     string
	ReplyTo *string
}

type GameReply

type GameReply struct {
	To          []string
	Msg         string
	Attachments []GameAttachment
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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