Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commander ¶
type Commander struct { ID uuid.UUID `json:"id"` WikiID int `json:"wikiID"` URL string `json:"url"` Name string `json:"name"` Summary string `json:"summary"` }
Commander represents a military leader involved in one or more battles in history
type CreationInput ¶
type CreationInput struct { WikiID int `validate:"required"` URL string `validate:"required,url"` Name string `validate:"required"` Summary string }
CreationInput is a struct that contains all of the data required to create a commander. This includes annotations required by validations
type FindManyQuery ¶
FindManyQuery is used to refine the filters when finding many commanders
type FindOneQuery ¶
FindOneQuery is used to refine the filters when finding one commander
type Reader ¶
type Reader interface { FindOne(query FindOneQuery) (Commander, error) FindMany(query FindManyQuery, page int) ([]Commander, int, error) }
Reader is the interface through which commanders may be read
type Repository ¶
Repository is the interface through which commanders may be read and written
Click to show internal directories.
Click to hide internal directories.