api

package
v0.0.0-...-22ebb89 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api interface {
}

func NewApi

func NewApi() (Api, error)

type CustomValidator

type CustomValidator struct {
	// contains filtered or unexported fields
}

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

type EchoApi

type EchoApi struct {
	// contains filtered or unexported fields
}

type Message

type Message struct {
	ID       uuid.UUID              `json:"id"`
	PlayerId uuid.UUID              `json:"player_id"`
	SendTime time.Time              `json:"send_time"`
	Number   int                    `json:"number"`
	Topic    string                 `json:"topic"`
	Message  map[string]interface{} `json:"message"`
}

type MessageCreate

type MessageCreate struct {
	ID      uuid.UUID              `param:"messageId" validate:"required"`
	LobbyId uuid.UUID              `param:"lobbyId" validate:"required"`
	Topic   string                 `json:"topic" validate:"required"`
	Message map[string]interface{} `json:"message"`
}

type MessageGet

type MessageGet struct {
	LobbyId uuid.UUID `param:"lobbyId" validate:"required"`
	Number  int       `param:"number" validate:"required"`
}

Jump to

Keyboard shortcuts

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