character

package
Version: v0.0.0-...-3051362 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

Types

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 (DBCharacterRepository) GetAll

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

func (DBCharacterRepository) Save

func (DBCharacterRepository) Update

Jump to

Keyboard shortcuts

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