api

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ProfilRootPath = "/profiles"
View Source
const ShipRootPath = "/ships"

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 DoorDTO

type DoorDTO struct {
	RoomBlockOneId int
	RoomBlockTwoId int
}

type EchoApi

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

type ProfileCreateDTO

type ProfileCreateDTO struct {
	Name string `json:"Name" validate:"required,alphanum"`
}

type ProfileResponseDTO

type ProfileResponseDTO struct {
	UserId uuid.UUID
	Name   string
}

type RoomBlockDTO

type RoomBlockDTO struct {
	Id   int
	PosX int
	PosY int
}

type RoomPlaceDTO

type RoomPlaceDTO struct {
	Id            int
	RoomBlockList []*RoomBlockDTO
}

type ShipTypeDTO

type ShipTypeDTO struct {
	Id              uuid.UUID
	Name            string
	RoomPlaceList   []*RoomPlaceDTO
	DoorList        []*DoorDTO
	WeaponPlaceList []*WeaponPlaceDTO
}

type WeaponPlaceDTO

type WeaponPlaceDTO struct {
	PosX int
	PosY int
}

Jump to

Keyboard shortcuts

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