Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
func RegisterRoutes(e *echo.Echo, db *pg.DB, nonEnforceAuth echo.MiddlewareFunc)
RegisterRoutes takes in an Echo router and registers routes onto it.
Types ¶
type DexType ¶
type DexType struct { ID int `json:"id"` Name string `json:"name"` Description *string `json:"description,omitempty"` GameFamilyID string `json:"game_family_id"` GameFamily *games.GameFamily `pg:"gf,rel:has-one" json:"-"` Order int `json:"order"` Tags []string `pg:",array" json:"tags"` BaseDexTypeID *int `json:"base_dex_type_id,omitempty"` BaseDexType *DexType `json:"base_dex_type,omitempty"` Pokemon []*pokemoncaptures.Pokemon `pg:"p,many2many:dex_types_pokemon" json:"-"` // contains filtered or unexported fields }
type DexTypePokemon ¶
type RetrieveDexTypeOptions ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(db *pg.DB) *Service
func (*Service) ListDexTypes ¶
func (*Service) RetrieveDexType ¶
Click to show internal directories.
Click to hide internal directories.