Back to

Package character

Latest Go to latest

The highest tagged major version is .

Published: Jun 19, 2020 | License: MIT | Module:


func DeleteCharacter

func DeleteCharacter(c *gin.Context)

func GetAllCharacters

func GetAllCharacters(c *gin.Context)

func GetCharacter

func GetCharacter(c *gin.Context)

func SaveCharacter

func SaveCharacter(c *gin.Context)

SaveCharacter saves a new character

func UpdateCharacter

func UpdateCharacter(c *gin.Context)

UpdateCharacter updates an existing character

type DBCharacterRepository

type DBCharacterRepository struct {
	// contains filtered or unexported fields

func NewDBCharacterRepository

func NewDBCharacterRepository(db *gorm.DB) DBCharacterRepository

func (DBCharacterRepository) Delete

func (repo DBCharacterRepository) Delete(c *gin.Context, id int64) error

func (DBCharacterRepository) Get

func (repo DBCharacterRepository) Get(c *gin.Context, id int64) (model.Character, bool, error)

func (DBCharacterRepository) GetAll

func (repo DBCharacterRepository) GetAll(c *gin.Context) ([]model.Character, error)

func (DBCharacterRepository) Save

func (repo DBCharacterRepository) Save(c *gin.Context, chCmd model.CharacterCommand) (model.Character, error)

func (DBCharacterRepository) Update

func (repo DBCharacterRepository) Update(c *gin.Context, id int64, chCmd model.CharacterCommand) (model.Character, bool, error)

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier