Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouter ¶
func NewRouter(cfg RouterConfig) *chi.Mux
Types ¶
type CORSConfig ¶
type EnnoblementService ¶
type EnnoblementService interface {
List(ctx context.Context, params domain.ListEnnoblementsParams) ([]domain.Ennoblement, int64, error)
}
type PlayerService ¶
type RouterConfig ¶
type RouterConfig struct { VersionService VersionService ServerService ServerService TribeService TribeService PlayerService PlayerService VillageService VillageService EnnoblementService EnnoblementService CORS CORSConfig Swagger bool }
type ServerService ¶
type TribeService ¶
type TribeService interface { List(ctx context.Context, params domain.ListTribesParams) ([]domain.Tribe, int64, error) GetByServerKeyAndID(ctx context.Context, serverKey string, id int64) (domain.Tribe, error) GetByServerKeyAndTag(ctx context.Context, serverKey string, tag string) (domain.Tribe, error) }
type VersionService ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.