Documentation ¶
Index ¶
- Constants
- func New(repository aos.Repository) api.ServerInterface
- type Service
- func (s *Service) GetAbilitiesForUnitByID(w http.ResponseWriter, r *http.Request, id string) *api.Response
- func (s *Service) GetAllegianceByID(w http.ResponseWriter, r *http.Request, id string) *api.Response
- func (s *Service) GetAllegiances(w http.ResponseWriter, r *http.Request, params api.GetAllegiancesParams) *api.Response
- func (s *Service) GetArmies(w http.ResponseWriter, r *http.Request) *api.Response
- func (s *Service) GetArmyByID(w http.ResponseWriter, r *http.Request, id string) *api.Response
- func (s *Service) GetCities(w http.ResponseWriter, r *http.Request, params api.GetCitiesParams) *api.Response
- func (s *Service) GetCityByID(w http.ResponseWriter, r *http.Request, id string) *api.Response
- func (s *Service) GetDocs(w http.ResponseWriter, r *http.Request) *api.Response
- func (s *Service) GetGrandAllianceByID(w http.ResponseWriter, r *http.Request, id string) *api.Response
- func (s *Service) GetGrandAlliances(w http.ResponseWriter, r *http.Request) *api.Response
- func (s *Service) GetGrandStrategies(w http.ResponseWriter, r *http.Request) *api.Response
- func (s *Service) GetGrandStrategyByID(w http.ResponseWriter, r *http.Request, id string) *api.Response
- func (s *Service) GetHealthz(w http.ResponseWriter, r *http.Request) *api.Response
- func (s *Service) GetUnitByID(w http.ResponseWriter, r *http.Request, id string) *api.Response
- func (s *Service) GetUnits(w http.ResponseWriter, r *http.Request, params api.GetUnitsParams) *api.Response
- func (s *Service) GetWarscrollByID(w http.ResponseWriter, r *http.Request, id string) *api.Response
- func (s *Service) GetWarscrolls(w http.ResponseWriter, r *http.Request, params api.GetWarscrollsParams) *api.Response
- func (s *Service) GetWeaponsForUnitByID(w http.ResponseWriter, r *http.Request, id string) *api.Response
Constants ¶
View Source
const ( ErrAllegianceNotFound = "Allegiance not found with this ID" ErrAllegiancesNotFound = "No allegiances found" )
View Source
const ( ErrAllianceNotFound = "Alliance not found with this ID" ErrAlliancesNotFound = "No alliances found" )
View Source
const ( ErrArmyNotFound = "Army not found with this ID" ErrArmiesNotFound = "No armies found" )
View Source
const ( ErrGrandStrategyNotFound = "Strategy not found with this ID" ErrGrandStrategiesNotFound = "No strategys found" )
View Source
const ( ErrUnitNotFound = "Unit not found with this ID" ErrUnitsNotFound = "No units found" )
View Source
const ( ErrWarscrollNotFound = "Warscroll not found with this ID" ErrWarscrollsNotFound = "No warscrolls found" )
View Source
const (
ErrCitiesNotFound = "cities not found"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(repository aos.Repository) api.ServerInterface
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetAbilitiesForUnitByID ¶
func (*Service) GetAllegianceByID ¶
func (*Service) GetAllegiances ¶
func (s *Service) GetAllegiances(w http.ResponseWriter, r *http.Request, params api.GetAllegiancesParams) *api.Response
func (*Service) GetArmyByID ¶
func (*Service) GetCities ¶
func (s *Service) GetCities(w http.ResponseWriter, r *http.Request, params api.GetCitiesParams) *api.Response
func (*Service) GetCityByID ¶
func (*Service) GetGrandAllianceByID ¶
func (*Service) GetGrandAlliances ¶
func (*Service) GetGrandStrategies ¶
func (*Service) GetGrandStrategyByID ¶
func (*Service) GetHealthz ¶
func (*Service) GetUnitByID ¶
func (*Service) GetUnits ¶
func (s *Service) GetUnits(w http.ResponseWriter, r *http.Request, params api.GetUnitsParams) *api.Response
func (*Service) GetWarscrollByID ¶
func (*Service) GetWarscrolls ¶
func (s *Service) GetWarscrolls(w http.ResponseWriter, r *http.Request, params api.GetWarscrollsParams) *api.Response
func (*Service) GetWeaponsForUnitByID ¶
Click to show internal directories.
Click to hide internal directories.