Documentation ¶
Index ¶
- type GroupBun
- func (g *GroupBun) AddMonitor(ctx context.Context, id string, tribeID int64) (domain.GroupWithMonitors, error)
- func (g *GroupBun) Create(ctx context.Context, params domain.CreateGroupParams) (domain.GroupWithMonitors, error)
- func (g *GroupBun) Delete(ctx context.Context, id string) error
- func (g *GroupBun) DeleteMany(ctx context.Context, ids ...string) error
- func (g *GroupBun) DeleteMonitors(ctx context.Context, id string, monitorIDs ...string) (domain.GroupWithMonitors, error)
- func (g *GroupBun) Get(ctx context.Context, id string) (domain.GroupWithMonitors, error)
- func (g *GroupBun) List(ctx context.Context, params domain.ListGroupsParams) ([]domain.GroupWithMonitors, error)
- func (g *GroupBun) 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 int64) (domain.Tribe, error)
- func (t *TWHelpHTTP) ListClosedServers(ctx context.Context, version string, offset, limit int32) ([]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, version string, offset, limit int32) ([]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 VillageRedis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupBun ¶
type GroupBun struct {
// contains filtered or unexported fields
}
func NewGroupBun ¶
func (*GroupBun) AddMonitor ¶
func (*GroupBun) Create ¶
func (g *GroupBun) Create(ctx context.Context, params domain.CreateGroupParams) (domain.GroupWithMonitors, error)
func (*GroupBun) DeleteMany ¶
func (*GroupBun) DeleteMonitors ¶
func (*GroupBun) List ¶
func (g *GroupBun) List(ctx context.Context, params domain.ListGroupsParams) ([]domain.GroupWithMonitors, error)
type TWHelpHTTP ¶
type TWHelpHTTP struct {
// contains filtered or unexported fields
}
func NewTWHelpHTTP ¶
func NewTWHelpHTTP(client *twhelp.Client) *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, offset, limit int32, ) ([]domain.Ennoblement, error)
func (*TWHelpHTTP) ListOpenServers ¶
func (*TWHelpHTTP) ListTribesByTag ¶
func (*TWHelpHTTP) ListVersions ¶
type VillageRedis ¶
type VillageRedis struct {
// contains filtered or unexported fields
}
func NewVillageRedis ¶
func NewVillageRedis(client redis.UniversalClient) *VillageRedis
func (*VillageRedis) GetTranslateCoordsParams ¶
func (v *VillageRedis) GetTranslateCoordsParams(ctx context.Context, sha256Hash string) (domain.TranslateVillageCoordsParams, error)
func (*VillageRedis) SaveTranslateCoordsParams ¶
func (v *VillageRedis) SaveTranslateCoordsParams(ctx context.Context, params domain.TranslateVillageCoordsParams) error
Click to show internal directories.
Click to hide internal directories.