Documentation ¶
Index ¶
- type Checker
- type Ennoblement
- func (e *Ennoblement) Create(ctx context.Context, params ...domain.CreateEnnoblementParams) error
- func (e *Ennoblement) Delete(ctx context.Context, serverKey string, createdAtLTE time.Time) error
- func (e *Ennoblement) List(ctx context.Context, params domain.ListEnnoblementsParams) ([]domain.Ennoblement, error)
- func (e *Ennoblement) ListCountWithRelations(ctx context.Context, params domain.ListEnnoblementsParams) ([]domain.EnnoblementWithRelations, int64, error)
- type Player
- func (p *Player) CreateOrUpdate(ctx context.Context, params ...domain.CreatePlayerParams) error
- func (p *Player) Delete(ctx context.Context, serverKey string, ids ...int64) error
- func (p *Player) List(ctx context.Context, params domain.ListPlayersParams) ([]domain.Player, error)
- func (p *Player) ListCountWithRelations(ctx context.Context, params domain.ListPlayersParams) ([]domain.PlayerWithRelations, int64, error)
- type PlayerSnapshot
- func (p *PlayerSnapshot) Create(ctx context.Context, params ...domain.CreatePlayerSnapshotParams) error
- func (p *PlayerSnapshot) Delete(ctx context.Context, serverKey string, createdAtLTE time.Time) error
- func (p *PlayerSnapshot) List(ctx context.Context, params domain.ListPlayerSnapshotsParams) ([]domain.PlayerSnapshot, error)
- func (p *PlayerSnapshot) ListCountWithRelations(ctx context.Context, params domain.ListPlayerSnapshotsParams) ([]domain.PlayerSnapshotWithRelations, int64, error)
- 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, error)
- func (s *Server) ListCount(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, error)
- func (t *Tribe) ListCount(ctx context.Context, params domain.ListTribesParams) ([]domain.Tribe, int64, error)
- func (t *Tribe) UpdateDominance(ctx context.Context, serverKey string, numPlayerVillages int64) error
- type TribeChange
- func (t *TribeChange) Create(ctx context.Context, params ...domain.CreateTribeChangeParams) error
- func (t *TribeChange) List(ctx context.Context, params domain.ListTribeChangesParams) ([]domain.TribeChange, error)
- func (t *TribeChange) ListCountWithRelations(ctx context.Context, params domain.ListTribeChangesParams) ([]domain.TribeChangeWithRelations, int64, error)
- type TribeSnapshot
- func (t *TribeSnapshot) Create(ctx context.Context, params ...domain.CreateTribeSnapshotParams) error
- func (t *TribeSnapshot) Delete(ctx context.Context, serverKey string, createdAtLTE time.Time) error
- func (t *TribeSnapshot) List(ctx context.Context, params domain.ListTribeSnapshotsParams) ([]domain.TribeSnapshot, error)
- func (t *TribeSnapshot) ListCount(ctx context.Context, params domain.ListTribeSnapshotsParams) ([]domain.TribeSnapshot, int64, error)
- type Version
- type Village
- func (v *Village) CreateOrUpdate(ctx context.Context, params ...domain.CreateVillageParams) error
- func (v *Village) List(ctx context.Context, params domain.ListVillagesParams) ([]domain.Village, error)
- func (v *Village) ListCountWithRelations(ctx context.Context, params domain.ListVillagesParams) ([]domain.VillageWithRelations, int64, error)
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.Ennoblement, error)
func (*Ennoblement) ListCountWithRelations ¶ added in v0.5.5
func (e *Ennoblement) ListCountWithRelations( ctx context.Context, params domain.ListEnnoblementsParams, ) ([]domain.EnnoblementWithRelations, int64, error)
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (*Player) CreateOrUpdate ¶
func (*Player) ListCountWithRelations ¶ added in v0.5.5
func (p *Player) ListCountWithRelations(ctx context.Context, params domain.ListPlayersParams) ([]domain.PlayerWithRelations, int64, error)
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
func (*PlayerSnapshot) List ¶ added in v0.6.0
func (p *PlayerSnapshot) List(ctx context.Context, params domain.ListPlayerSnapshotsParams) ([]domain.PlayerSnapshot, error)
func (*PlayerSnapshot) ListCountWithRelations ¶ added in v0.7.0
func (p *PlayerSnapshot) ListCountWithRelations( ctx context.Context, params domain.ListPlayerSnapshotsParams, ) ([]domain.PlayerSnapshotWithRelations, int64, 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
func (*TribeChange) List ¶ added in v0.7.5
func (t *TribeChange) List(ctx context.Context, params domain.ListTribeChangesParams) ([]domain.TribeChange, error)
func (*TribeChange) ListCountWithRelations ¶ added in v0.7.5
func (t *TribeChange) ListCountWithRelations( ctx context.Context, params domain.ListTribeChangesParams, ) ([]domain.TribeChangeWithRelations, int64, 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
func (*TribeSnapshot) List ¶ added in v0.6.0
func (t *TribeSnapshot) List(ctx context.Context, params domain.ListTribeSnapshotsParams) ([]domain.TribeSnapshot, error)
func (*TribeSnapshot) ListCount ¶ added in v0.10.0
func (t *TribeSnapshot) ListCount(ctx context.Context, params domain.ListTribeSnapshotsParams) ([]domain.TribeSnapshot, int64, 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 ¶
func (*Village) ListCountWithRelations ¶ added in v0.5.5
func (v *Village) ListCountWithRelations(ctx context.Context, params domain.ListVillagesParams) ([]domain.VillageWithRelations, int64, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.