Documentation ¶
Index ¶
- type Checker
- type Ennoblement
- type Player
- type PlayerSnapshot
- type Server
- func (s *Server) CreateOrUpdate(ctx context.Context, params ...domain.CreateServerParams) ([]domain.Server, error)
- func (s *Server) List(ctx context.Context, params domain.ListServersParams) ([]domain.Server, int64, error)
- func (s *Server) Update(ctx context.Context, key string, params domain.UpdateServerParams) (domain.Server, error)
- type Tribe
- func (t *Tribe) CreateOrUpdate(ctx context.Context, params ...domain.CreateTribeParams) error
- func (t *Tribe) Delete(ctx context.Context, serverKey string, ids ...int64) error
- func (t *Tribe) List(ctx context.Context, params domain.ListTribesParams) ([]domain.Tribe, int64, error)
- func (t *Tribe) UpdateDominance(ctx context.Context, serverKey string, numPlayerVillages int64) error
- type TribeChange
- type TribeSnapshot
- type Version
- type Village
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ennoblement ¶
type Ennoblement struct {
// contains filtered or unexported fields
}
func NewEnnoblement ¶
func NewEnnoblement(db *bun.DB) *Ennoblement
func (*Ennoblement) Create ¶
func (e *Ennoblement) Create(ctx context.Context, params ...domain.CreateEnnoblementParams) error
func (*Ennoblement) List ¶
func (e *Ennoblement) List( ctx context.Context, params domain.ListEnnoblementsParams, ) ([]domain.EnnoblementWithRelations, int64, error)
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (*Player) CreateOrUpdate ¶
type PlayerSnapshot ¶ added in v0.3.0
type PlayerSnapshot struct {
// contains filtered or unexported fields
}
func NewPlayerSnapshot ¶ added in v0.3.0
func NewPlayerSnapshot(db *bun.DB) *PlayerSnapshot
func (*PlayerSnapshot) Create ¶ added in v0.3.0
func (p *PlayerSnapshot) Create(ctx context.Context, params ...domain.CreatePlayerSnapshotParams) error
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CreateOrUpdate ¶
type Tribe ¶
type Tribe struct {
// contains filtered or unexported fields
}
func (*Tribe) CreateOrUpdate ¶
type TribeChange ¶ added in v0.4.0
type TribeChange struct {
// contains filtered or unexported fields
}
func NewTribeChange ¶ added in v0.4.0
func NewTribeChange(db *bun.DB) *TribeChange
func (*TribeChange) Create ¶ added in v0.4.0
func (t *TribeChange) Create(ctx context.Context, params ...domain.CreateTribeChangeParams) error
type TribeSnapshot ¶ added in v0.3.0
type TribeSnapshot struct {
// contains filtered or unexported fields
}
func NewTribeSnapshot ¶ added in v0.3.0
func NewTribeSnapshot(db *bun.DB) *TribeSnapshot
func (*TribeSnapshot) Create ¶ added in v0.3.0
func (t *TribeSnapshot) Create(ctx context.Context, params ...domain.CreateTribeSnapshotParams) error
type Version ¶
type Version struct {
// contains filtered or unexported fields
}
func NewVersion ¶
type Village ¶
type Village struct {
// contains filtered or unexported fields
}
func NewVillage ¶
func (*Village) CreateOrUpdate ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.