handler

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CharactersHandler

type CharactersHandler struct {
	Service service.CharactersService
}

CharactersHandler ...

func (*CharactersHandler) CreateNewCharacter

func (csh *CharactersHandler) CreateNewCharacter(c *gin.Context)

CreateNewCharacter ... creates a new charactersheet

func (*CharactersHandler) DeleteCharacterByID

func (csh *CharactersHandler) DeleteCharacterByID(c *gin.Context)

DeleteCharacterByID returns a single charactersheet

func (*CharactersHandler) GetCharacterByID

func (csh *CharactersHandler) GetCharacterByID(c *gin.Context)

GetCharacterByID returns a single charactersheet

func (*CharactersHandler) GetCharacterTemplates

func (csh *CharactersHandler) GetCharacterTemplates(c *gin.Context)

GetCharacterTemplates returns the list of item templates

func (*CharactersHandler) GetCharacters

func (csh *CharactersHandler) GetCharacters(c *gin.Context)

GetCharacters returns the list of item templates

func (*CharactersHandler) PostCharacter

func (csh *CharactersHandler) PostCharacter(c *gin.Context)

PostCharacter ... creates a new charactersheet

func (*CharactersHandler) UpdateCharacterByID

func (csh *CharactersHandler) UpdateCharacterByID(c *gin.Context)

UpdateCharacterByID creates a new charactersheet

type ExportHandler

type ExportHandler struct {
	RoomsService      service.RoomsService
	CharactersService service.CharactersService
	UserService       service.UsersService
	ItemsService      service.ItemsService
	ScriptService     service.ScriptsService
}

ExportHandler ...

func (*ExportHandler) Export

func (handler *ExportHandler) Export(c *gin.Context)

Export Exports all data structures as JSON

func (*ExportHandler) Import

func (handler *ExportHandler) Import(c *gin.Context)

Import Imports all data structures

type ItemsHandler

type ItemsHandler struct {
	Service service.ItemsService
}

ItemsHandler ...

func (*ItemsHandler) CreateItemFromTemplateID

func (csh *ItemsHandler) CreateItemFromTemplateID(c *gin.Context)

CreateItemFromTemplateID creates a item

func (*ItemsHandler) DeleteItemByID

func (csh *ItemsHandler) DeleteItemByID(c *gin.Context)

DeleteItemByID deletes an item

func (*ItemsHandler) DeleteItemTemplateByID

func (csh *ItemsHandler) DeleteItemTemplateByID(c *gin.Context)

DeleteItemTemplateByID deletes an item

func (*ItemsHandler) GetItemByID

func (csh *ItemsHandler) GetItemByID(c *gin.Context)

GetItemByID returns a item

func (*ItemsHandler) GetItemQualities

func (csh *ItemsHandler) GetItemQualities(c *gin.Context)

GetItemQualities ...

func (*ItemsHandler) GetItemSlots

func (csh *ItemsHandler) GetItemSlots(c *gin.Context)

GetItemSlots ...

func (*ItemsHandler) GetItemSubTypes

func (csh *ItemsHandler) GetItemSubTypes(c *gin.Context)

GetItemSubTypes ...

func (*ItemsHandler) GetItemTemplateByID

func (csh *ItemsHandler) GetItemTemplateByID(c *gin.Context)

GetItemTemplateByID returns a item

func (*ItemsHandler) GetItemTemplates

func (csh *ItemsHandler) GetItemTemplates(c *gin.Context)

GetItemTemplates returns the list of item templates

func (*ItemsHandler) GetItemTypes

func (csh *ItemsHandler) GetItemTypes(c *gin.Context)

GetItemTypes ...

func (*ItemsHandler) GetItems

func (csh *ItemsHandler) GetItems(c *gin.Context)

GetItems returns the list of items TODO: add filters

func (*ItemsHandler) PostItem

func (csh *ItemsHandler) PostItem(c *gin.Context)

PostItem ... creates a new item

func (*ItemsHandler) PostItemTemplate

func (csh *ItemsHandler) PostItemTemplate(c *gin.Context)

PostItemTemplate ... creates a new item template

func (*ItemsHandler) UpdateItemByID

func (csh *ItemsHandler) UpdateItemByID(c *gin.Context)

UpdateItemByID creates a item

func (*ItemsHandler) UpdateItemTemplateByID

func (csh *ItemsHandler) UpdateItemTemplateByID(c *gin.Context)

UpdateItemTemplateByID creates a item

type RoomsHandler

type RoomsHandler struct {
	Service service.RoomsService
}

RoomsHandler ...

func (*RoomsHandler) DeleteRoom

func (handler *RoomsHandler) DeleteRoom(c *gin.Context)

DeleteRoom ... Updates a room

func (*RoomsHandler) GetRoomOfTheDay

func (handler *RoomsHandler) GetRoomOfTheDay(c *gin.Context)

GetRoomOfTheDay returns the list of item templates

func (*RoomsHandler) GetRoomValueHelp

func (handler *RoomsHandler) GetRoomValueHelp(c *gin.Context)

GetRoomValueHelp returns the list of item templates

func (*RoomsHandler) GetRooms

func (handler *RoomsHandler) GetRooms(c *gin.Context)

GetRooms returns the list of item templates

func (*RoomsHandler) PostRoom

func (handler *RoomsHandler) PostRoom(c *gin.Context)

PostRoom ... creates a new charactersheet

func (*RoomsHandler) PutRoom

func (handler *RoomsHandler) PutRoom(c *gin.Context)

PutRoom ... Updates a room

type ScriptsHandler

type ScriptsHandler struct {
	Service service.ScriptsService
	Runner  s.ScriptRunner
}

ScriptsHandler ...

func (*ScriptsHandler) DeleteScript

func (handler *ScriptsHandler) DeleteScript(c *gin.Context)

DeleteScript ... Updates a script

func (*ScriptsHandler) ExecuteScript

func (handler *ScriptsHandler) ExecuteScript(c *gin.Context)

ExecuteScript ... Updates a script

func (*ScriptsHandler) GetScriptTypes

func (handler *ScriptsHandler) GetScriptTypes(c *gin.Context)

GetScriptTypes ...

func (*ScriptsHandler) GetScripts

func (handler *ScriptsHandler) GetScripts(c *gin.Context)

GetScripts returns the list of scripts

func (*ScriptsHandler) PostScript

func (handler *ScriptsHandler) PostScript(c *gin.Context)

PostScript ... creates a new charactersheet

func (*ScriptsHandler) PutScript

func (handler *ScriptsHandler) PutScript(c *gin.Context)

PutScript ... Updates a script

type UsersHandler

type UsersHandler struct {
	Service service.UsersService
}

UsersHandler ...

func (*UsersHandler) GetUser

func (handler *UsersHandler) GetUser(c *gin.Context)

GetUser returns the user info

func (*UsersHandler) UpdateUser

func (handler *UsersHandler) UpdateUser(c *gin.Context)

UpdateUser update the current user information

type WorldRendererHandler

type WorldRendererHandler struct {
	RoomsService service.RoomsService
}

WorldRendererHandler ...

func (*WorldRendererHandler) Render

func (handler *WorldRendererHandler) Render(c *gin.Context)

Render renders the

Jump to

Keyboard shortcuts

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