Documentation ¶
Index ¶
- type GroupBunRepository
- func (g *GroupBunRepository) AddMonitor(ctx context.Context, id string, tribeID int) (domain.GroupWithMonitors, error)
- func (g *GroupBunRepository) Create(ctx context.Context, params domain.CreateGroupParams) (domain.GroupWithMonitors, error)
- func (g *GroupBunRepository) Delete(ctx context.Context, id string) error
- func (g *GroupBunRepository) DeleteMany(ctx context.Context, ids ...string) error
- func (g *GroupBunRepository) DeleteMonitors(ctx context.Context, id string, monitorIDs ...string) (domain.GroupWithMonitors, error)
- func (g *GroupBunRepository) Get(ctx context.Context, id string) (domain.GroupWithMonitors, error)
- func (g *GroupBunRepository) List(ctx context.Context, params domain.ListGroupsParams) ([]domain.GroupWithMonitors, error)
- func (g *GroupBunRepository) Update(ctx context.Context, id string, params domain.UpdateGroupParams) (domain.GroupWithMonitors, error)
- type TWHelpHTTP
- func (t *TWHelpHTTP) GetExistingTribeByTag(ctx context.Context, versionCode, serverKey, tribeTag string) (domain.Tribe, error)
- func (t *TWHelpHTTP) GetOpenServer(ctx context.Context, versionCode, serverKey string) (domain.TWServer, error)
- func (t *TWHelpHTTP) GetServer(ctx context.Context, versionCode, serverKey string) (domain.TWServer, error)
- func (t *TWHelpHTTP) GetTribeByID(ctx context.Context, versionCode, serverKey string, id int) (domain.Tribe, error)
- func (t *TWHelpHTTP) ListClosedServers(ctx context.Context, versionCode string, limit int) ([]domain.TWServer, error)
- func (t *TWHelpHTTP) ListEnnoblementsSince(ctx context.Context, versionCode, serverKey string, since time.Time) ([]domain.Ennoblement, error)
- func (t *TWHelpHTTP) ListOpenServers(ctx context.Context, versionCode string, limit int) ([]domain.TWServer, error)
- func (t *TWHelpHTTP) ListTribesByTag(ctx context.Context, versionCode, serverKey string, tribeTags []string) ([]domain.Tribe, error)
- func (t *TWHelpHTTP) ListVersions(ctx context.Context) ([]domain.TWVersion, error)
- func (t *TWHelpHTTP) ListVillagesByCoords(ctx context.Context, versionCode, serverKey string, coords []string) ([]domain.Village, error)
- type VillageRedisRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupBunRepository ¶ added in v0.4.2
type GroupBunRepository struct {
// contains filtered or unexported fields
}
func NewGroupBunRepository ¶ added in v0.4.2
func NewGroupBunRepository(db *bun.DB) *GroupBunRepository
func (*GroupBunRepository) AddMonitor ¶ added in v0.4.2
func (g *GroupBunRepository) AddMonitor(ctx context.Context, id string, tribeID int) (domain.GroupWithMonitors, error)
func (*GroupBunRepository) Create ¶ added in v0.4.2
func (g *GroupBunRepository) Create(ctx context.Context, params domain.CreateGroupParams) (domain.GroupWithMonitors, error)
func (*GroupBunRepository) Delete ¶ added in v0.4.2
func (g *GroupBunRepository) Delete(ctx context.Context, id string) error
func (*GroupBunRepository) DeleteMany ¶ added in v0.4.2
func (g *GroupBunRepository) DeleteMany(ctx context.Context, ids ...string) error
func (*GroupBunRepository) DeleteMonitors ¶ added in v0.4.2
func (g *GroupBunRepository) DeleteMonitors(ctx context.Context, id string, monitorIDs ...string) (domain.GroupWithMonitors, error)
func (*GroupBunRepository) Get ¶ added in v0.4.2
func (g *GroupBunRepository) Get(ctx context.Context, id string) (domain.GroupWithMonitors, error)
func (*GroupBunRepository) List ¶ added in v0.4.2
func (g *GroupBunRepository) List(ctx context.Context, params domain.ListGroupsParams) ([]domain.GroupWithMonitors, error)
func (*GroupBunRepository) Update ¶ added in v0.4.2
func (g *GroupBunRepository) Update(ctx context.Context, id string, params domain.UpdateGroupParams) (domain.GroupWithMonitors, error)
type TWHelpHTTP ¶
type TWHelpHTTP struct {
// contains filtered or unexported fields
}
func NewTWHelpHTTP ¶
func NewTWHelpHTTP(client *twhelp.ClientWithResponses) *TWHelpHTTP
func (*TWHelpHTTP) GetExistingTribeByTag ¶
func (*TWHelpHTTP) GetOpenServer ¶
func (*TWHelpHTTP) GetTribeByID ¶
func (*TWHelpHTTP) ListClosedServers ¶
func (*TWHelpHTTP) ListEnnoblementsSince ¶
func (t *TWHelpHTTP) ListEnnoblementsSince(ctx context.Context, versionCode, serverKey string, since time.Time) ([]domain.Ennoblement, error)
func (*TWHelpHTTP) ListOpenServers ¶
func (*TWHelpHTTP) ListTribesByTag ¶
func (*TWHelpHTTP) ListVersions ¶
func (*TWHelpHTTP) ListVillagesByCoords ¶
type VillageRedisRepository ¶ added in v0.4.2
type VillageRedisRepository struct {
// contains filtered or unexported fields
}
func NewVillageRedisRepository ¶ added in v0.4.2
func NewVillageRedisRepository(client redis.UniversalClient) *VillageRedisRepository
func (*VillageRedisRepository) GetTranslateCoordsParams ¶ added in v0.4.2
func (v *VillageRedisRepository) GetTranslateCoordsParams(ctx context.Context, sha256Hash string) (domain.TranslateVillageCoordsParams, error)
func (*VillageRedisRepository) SaveTranslateCoordsParams ¶ added in v0.4.2
func (v *VillageRedisRepository) SaveTranslateCoordsParams(ctx context.Context, params domain.TranslateVillageCoordsParams) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.