service

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 (s *Service) GetAbilitiesForUnitByID(w http.ResponseWriter, r *http.Request, id string) *api.Response

func (*Service) GetAllegianceByID

func (s *Service) GetAllegianceByID(w http.ResponseWriter, r *http.Request, id string) *api.Response

func (*Service) GetAllegiances

func (s *Service) GetAllegiances(w http.ResponseWriter, r *http.Request, params api.GetAllegiancesParams) *api.Response

func (*Service) GetArmies

func (s *Service) GetArmies(w http.ResponseWriter, r *http.Request) *api.Response

func (*Service) GetArmyByID

func (s *Service) GetArmyByID(w http.ResponseWriter, r *http.Request, id string) *api.Response

func (*Service) GetCities

func (s *Service) GetCities(w http.ResponseWriter, r *http.Request, params api.GetCitiesParams) *api.Response

func (*Service) GetCityByID

func (s *Service) GetCityByID(w http.ResponseWriter, r *http.Request, id string) *api.Response

func (*Service) GetDocs

func (s *Service) GetDocs(w http.ResponseWriter, r *http.Request) *api.Response

func (*Service) GetGrandAllianceByID

func (s *Service) GetGrandAllianceByID(w http.ResponseWriter, r *http.Request, id string) *api.Response

func (*Service) GetGrandAlliances

func (s *Service) GetGrandAlliances(w http.ResponseWriter, r *http.Request) *api.Response

func (*Service) GetGrandStrategies

func (s *Service) GetGrandStrategies(w http.ResponseWriter, r *http.Request) *api.Response

func (*Service) GetGrandStrategyByID

func (s *Service) GetGrandStrategyByID(w http.ResponseWriter, r *http.Request, id string) *api.Response

func (*Service) GetHealthz

func (s *Service) GetHealthz(w http.ResponseWriter, r *http.Request) *api.Response

func (*Service) GetUnitByID

func (s *Service) GetUnitByID(w http.ResponseWriter, r *http.Request, id string) *api.Response

func (*Service) GetUnits

func (s *Service) GetUnits(w http.ResponseWriter, r *http.Request, params api.GetUnitsParams) *api.Response

func (*Service) GetWarscrollByID

func (s *Service) GetWarscrollByID(w http.ResponseWriter, r *http.Request, id string) *api.Response

func (*Service) GetWarscrolls

func (s *Service) GetWarscrolls(w http.ResponseWriter, r *http.Request, params api.GetWarscrollsParams) *api.Response

func (*Service) GetWeaponsForUnitByID

func (s *Service) GetWeaponsForUnitByID(w http.ResponseWriter, r *http.Request, id string) *api.Response

Jump to

Keyboard shortcuts

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