inputs

package
v0.0.0-...-10e2223 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthAccountInput

type AuthAccountInput struct {
	Username       string `json:"username"`
	SecurePassword string `json:"secure_password"`
}

AuthAccountInput form

func NewAuthAccountInput

func NewAuthAccountInput() *AuthAccountInput

NewAuthAccountInput constructor

func (*AuthAccountInput) BuildAccount

func (in *AuthAccountInput) BuildAccount() (account *entities.Account)

BuildAccount based in input request

type ChatInput

type ChatInput struct {
	CharacterID int    `json:"character_id"`
	Body        string `json:"body"`

	CheckSessionInput *CheckSessionInput `json:"check_session_input"`
}

ChatInput struct

func NewChatInput

func NewChatInput() *ChatInput

NewChatInput constructor

func (*ChatInput) HasBody

func (in *ChatInput) HasBody() bool

HasBody verify

type CheckSessionInput

type CheckSessionInput struct {
	Username string `json:"username"`
	Token    string `json:"token"`
}

CheckSessionInput struct

func NewCheckSessionInput

func NewCheckSessionInput() *CheckSessionInput

NewCheckSessionInput struct

type CreateAccountInput

type CreateAccountInput struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Email    string `json:"email"`
}

CreateAccountInput form

func NewCreateAccountInput

func NewCreateAccountInput() *CreateAccountInput

NewCreateAccountInput constructor

func (*CreateAccountInput) BuildAccount

func (in *CreateAccountInput) BuildAccount() (account *entities.Account)

BuildAccount based in input request

func (*CreateAccountInput) Valid

func (in *CreateAccountInput) Valid() bool

Valid input form

type CreateCharacterInput

type CreateCharacterInput struct {
	Auth AuthAccountInput

	Name string `json:"name"`
}

CreateCharacterInput form

func NewCreateCharacterInput

func NewCreateCharacterInput() *CreateCharacterInput

NewCreateCharacterInput constructor

func (*CreateCharacterInput) BuildAccount

func (in *CreateCharacterInput) BuildAccount() *entities.Account

BuildAccount from this form

func (*CreateCharacterInput) BuildCharacter

func (in *CreateCharacterInput) BuildCharacter() *entities.Character

BuildCharacter from this form

type MoveCharacterInput

type MoveCharacterInput struct {
	CharacterID int `json:"character_id"`
	DeltaX      int `json:"delta_x"`
	DeltaY      int `json:"delta_y"`

	CheckSessionInput *CheckSessionInput `json:"check_session_input"`
}

MoveCharacterInput struct

func NewMoveCharacterInput

func NewMoveCharacterInput() *MoveCharacterInput

NewMoveCharacterInput constructor

type SpawnCharacterInput

type SpawnCharacterInput struct {
	CharacterID       int                `json:"character_id"`
	CheckSessionInput *CheckSessionInput `json:"check_session_input"`
}

SpawnCharacterInput struct

func NewSpawnCharacterInput

func NewSpawnCharacterInput() *SpawnCharacterInput

NewSpawnCharacterInput constructor

Jump to

Keyboard shortcuts

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