Documentation ¶
Index ¶
- type CheckerBun
- type EnnoblementBun
- func (e *EnnoblementBun) Create(ctx context.Context, params ...domain.CreateEnnoblementParams) error
- func (e *EnnoblementBun) Delete(ctx context.Context, serverKey string, createdAtLTE time.Time) error
- func (e *EnnoblementBun) List(ctx context.Context, params domain.ListEnnoblementsParams) ([]domain.Ennoblement, error)
- func (e *EnnoblementBun) ListCountWithRelations(ctx context.Context, params domain.ListEnnoblementsParams) ([]domain.EnnoblementWithRelations, int64, error)
- type PlayerBun
- func (p *PlayerBun) CreateOrUpdate(ctx context.Context, params ...domain.CreatePlayerParams) error
- func (p *PlayerBun) Delete(ctx context.Context, serverKey string, ids ...int64) error
- func (p *PlayerBun) List(ctx context.Context, params domain.ListPlayersParams) ([]domain.Player, error)
- func (p *PlayerBun) ListCountWithRelations(ctx context.Context, params domain.ListPlayersParams) ([]domain.PlayerWithRelations, int64, error)
- type PlayerSnapshotBun
- func (p *PlayerSnapshotBun) Create(ctx context.Context, params ...domain.CreatePlayerSnapshotParams) error
- func (p *PlayerSnapshotBun) Delete(ctx context.Context, serverKey string, createdAtLTE time.Time) error
- func (p *PlayerSnapshotBun) List(ctx context.Context, params domain.ListPlayerSnapshotsParams) ([]domain.PlayerSnapshot, error)
- func (p *PlayerSnapshotBun) ListCountWithRelations(ctx context.Context, params domain.ListPlayerSnapshotsParams) ([]domain.PlayerSnapshotWithRelations, int64, error)
- type ServerBun
- func (s *ServerBun) CreateOrUpdate(ctx context.Context, params ...domain.CreateServerParams) ([]domain.Server, error)
- func (s *ServerBun) List(ctx context.Context, params domain.ListServersParams) ([]domain.Server, error)
- func (s *ServerBun) ListCount(ctx context.Context, params domain.ListServersParams) ([]domain.Server, int64, error)
- func (s *ServerBun) Update(ctx context.Context, key string, params domain.UpdateServerParams) (domain.Server, error)
- type TWHTTP
- func (t *TWHTTP) GetBuildingInfo(ctx context.Context, baseURL string) (domain.BuildingInfo, error)
- func (t *TWHTTP) GetEnnoblements(ctx context.Context, baseURL string, since time.Time) ([]domain.BaseEnnoblement, error)
- func (t *TWHTTP) GetOpenServers(ctx context.Context, baseURL string) ([]domain.OpenServer, error)
- func (t *TWHTTP) GetPlayers(ctx context.Context, baseURL string) ([]domain.BasePlayer, error)
- func (t *TWHTTP) GetServerConfig(ctx context.Context, baseURL string) (domain.ServerConfig, error)
- func (t *TWHTTP) GetTribes(ctx context.Context, baseURL string) ([]domain.BaseTribe, error)
- func (t *TWHTTP) GetUnitInfo(ctx context.Context, baseURL string) (domain.UnitInfo, error)
- func (t *TWHTTP) GetVillages(ctx context.Context, baseURL string) ([]domain.BaseVillage, error)
- type TribeBun
- func (t *TribeBun) CreateOrUpdate(ctx context.Context, params ...domain.CreateTribeParams) error
- func (t *TribeBun) Delete(ctx context.Context, serverKey string, ids ...int64) error
- func (t *TribeBun) List(ctx context.Context, params domain.ListTribesParams) ([]domain.Tribe, error)
- func (t *TribeBun) ListCount(ctx context.Context, params domain.ListTribesParams) ([]domain.Tribe, int64, error)
- func (t *TribeBun) UpdateDominance(ctx context.Context, serverKey string, numPlayerVillages int64) error
- type TribeChangeBun
- func (t *TribeChangeBun) Create(ctx context.Context, params ...domain.CreateTribeChangeParams) error
- func (t *TribeChangeBun) List(ctx context.Context, params domain.ListTribeChangesParams) ([]domain.TribeChange, error)
- func (t *TribeChangeBun) ListCountWithRelations(ctx context.Context, params domain.ListTribeChangesParams) ([]domain.TribeChangeWithRelations, int64, error)
- type TribeSnapshotBun
- func (t *TribeSnapshotBun) Create(ctx context.Context, params ...domain.CreateTribeSnapshotParams) error
- func (t *TribeSnapshotBun) Delete(ctx context.Context, serverKey string, createdAtLTE time.Time) error
- func (t *TribeSnapshotBun) List(ctx context.Context, params domain.ListTribeSnapshotsParams) ([]domain.TribeSnapshot, error)
- func (t *TribeSnapshotBun) ListCount(ctx context.Context, params domain.ListTribeSnapshotsParams) ([]domain.TribeSnapshot, int64, error)
- type VersionBun
- type VillageBun
- func (v *VillageBun) CreateOrUpdate(ctx context.Context, params ...domain.CreateVillageParams) error
- func (v *VillageBun) List(ctx context.Context, params domain.ListVillagesParams) ([]domain.Village, error)
- func (v *VillageBun) 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 CheckerBun ¶
type CheckerBun struct {
// contains filtered or unexported fields
}
func NewCheckerBun ¶
func NewCheckerBun(db *bun.DB) *CheckerBun
func (*CheckerBun) Name ¶
func (c *CheckerBun) Name() string
type EnnoblementBun ¶
type EnnoblementBun struct {
// contains filtered or unexported fields
}
func NewEnnoblementBun ¶
func NewEnnoblementBun(db *bun.DB) *EnnoblementBun
func (*EnnoblementBun) Create ¶
func (e *EnnoblementBun) Create(ctx context.Context, params ...domain.CreateEnnoblementParams) error
func (*EnnoblementBun) List ¶
func (e *EnnoblementBun) List(ctx context.Context, params domain.ListEnnoblementsParams) ([]domain.Ennoblement, error)
func (*EnnoblementBun) ListCountWithRelations ¶
func (e *EnnoblementBun) ListCountWithRelations( ctx context.Context, params domain.ListEnnoblementsParams, ) ([]domain.EnnoblementWithRelations, int64, error)
type PlayerBun ¶
type PlayerBun struct {
// contains filtered or unexported fields
}
func NewPlayerBun ¶
func (*PlayerBun) CreateOrUpdate ¶
func (*PlayerBun) ListCountWithRelations ¶
func (p *PlayerBun) ListCountWithRelations(ctx context.Context, params domain.ListPlayersParams) ([]domain.PlayerWithRelations, int64, error)
type PlayerSnapshotBun ¶
type PlayerSnapshotBun struct {
// contains filtered or unexported fields
}
func NewPlayerSnapshotBun ¶
func NewPlayerSnapshotBun(db *bun.DB) *PlayerSnapshotBun
func (*PlayerSnapshotBun) Create ¶
func (p *PlayerSnapshotBun) Create(ctx context.Context, params ...domain.CreatePlayerSnapshotParams) error
func (*PlayerSnapshotBun) List ¶
func (p *PlayerSnapshotBun) List(ctx context.Context, params domain.ListPlayerSnapshotsParams) ([]domain.PlayerSnapshot, error)
func (*PlayerSnapshotBun) ListCountWithRelations ¶
func (p *PlayerSnapshotBun) ListCountWithRelations( ctx context.Context, params domain.ListPlayerSnapshotsParams, ) ([]domain.PlayerSnapshotWithRelations, int64, error)
type ServerBun ¶
type ServerBun struct {
// contains filtered or unexported fields
}
func NewServerBun ¶
func (*ServerBun) CreateOrUpdate ¶
type TWHTTP ¶
type TWHTTP struct {
// contains filtered or unexported fields
}
func (*TWHTTP) GetBuildingInfo ¶
func (*TWHTTP) GetEnnoblements ¶
func (*TWHTTP) GetOpenServers ¶
func (*TWHTTP) GetPlayers ¶
func (*TWHTTP) GetServerConfig ¶
func (*TWHTTP) GetUnitInfo ¶
func (*TWHTTP) GetVillages ¶
type TribeBun ¶
type TribeBun struct {
// contains filtered or unexported fields
}
func NewTribeBun ¶
func (*TribeBun) CreateOrUpdate ¶
type TribeChangeBun ¶
type TribeChangeBun struct {
// contains filtered or unexported fields
}
func NewTribeChangeBun ¶
func NewTribeChangeBun(db *bun.DB) *TribeChangeBun
func (*TribeChangeBun) Create ¶
func (t *TribeChangeBun) Create(ctx context.Context, params ...domain.CreateTribeChangeParams) error
func (*TribeChangeBun) List ¶
func (t *TribeChangeBun) List(ctx context.Context, params domain.ListTribeChangesParams) ([]domain.TribeChange, error)
func (*TribeChangeBun) ListCountWithRelations ¶
func (t *TribeChangeBun) ListCountWithRelations( ctx context.Context, params domain.ListTribeChangesParams, ) ([]domain.TribeChangeWithRelations, int64, error)
type TribeSnapshotBun ¶
type TribeSnapshotBun struct {
// contains filtered or unexported fields
}
func NewTribeSnapshotBun ¶
func NewTribeSnapshotBun(db *bun.DB) *TribeSnapshotBun
func (*TribeSnapshotBun) Create ¶
func (t *TribeSnapshotBun) Create(ctx context.Context, params ...domain.CreateTribeSnapshotParams) error
func (*TribeSnapshotBun) List ¶
func (t *TribeSnapshotBun) List(ctx context.Context, params domain.ListTribeSnapshotsParams) ([]domain.TribeSnapshot, error)
func (*TribeSnapshotBun) ListCount ¶
func (t *TribeSnapshotBun) ListCount(ctx context.Context, params domain.ListTribeSnapshotsParams) ([]domain.TribeSnapshot, int64, error)
type VersionBun ¶
type VersionBun struct {
// contains filtered or unexported fields
}
func NewVersionBun ¶
func NewVersionBun(db *bun.DB) *VersionBun
type VillageBun ¶
type VillageBun struct {
// contains filtered or unexported fields
}
func NewVillageBun ¶
func NewVillageBun(db *bun.DB) *VillageBun
func (*VillageBun) CreateOrUpdate ¶
func (v *VillageBun) CreateOrUpdate(ctx context.Context, params ...domain.CreateVillageParams) error
func (*VillageBun) List ¶
func (v *VillageBun) List(ctx context.Context, params domain.ListVillagesParams) ([]domain.Village, error)
func (*VillageBun) ListCountWithRelations ¶
func (v *VillageBun) ListCountWithRelations(ctx context.Context, params domain.ListVillagesParams) ([]domain.VillageWithRelations, int64, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.