adapter

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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 (*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 (*GroupBunRepository) List added in v0.4.2

func (*GroupBunRepository) Update added in v0.4.2

type TWHelpHTTP

type TWHelpHTTP struct {
	// contains filtered or unexported fields
}

func NewTWHelpHTTP

func NewTWHelpHTTP(client *twhelp.ClientWithResponses) *TWHelpHTTP

func (*TWHelpHTTP) GetExistingTribeByTag

func (t *TWHelpHTTP) GetExistingTribeByTag(ctx context.Context, versionCode, serverKey, tribeTag string) (domain.Tribe, error)

func (*TWHelpHTTP) GetOpenServer

func (t *TWHelpHTTP) GetOpenServer(ctx context.Context, versionCode, serverKey string) (domain.TWServer, error)

func (*TWHelpHTTP) GetServer

func (t *TWHelpHTTP) GetServer(ctx context.Context, versionCode, serverKey string) (domain.TWServer, error)

func (*TWHelpHTTP) GetTribeByID

func (t *TWHelpHTTP) GetTribeByID(ctx context.Context, versionCode, serverKey string, id int) (domain.Tribe, error)

func (*TWHelpHTTP) ListClosedServers

func (t *TWHelpHTTP) ListClosedServers(ctx context.Context, versionCode string, limit int) ([]domain.TWServer, error)

func (*TWHelpHTTP) ListEnnoblementsSince

func (t *TWHelpHTTP) ListEnnoblementsSince(ctx context.Context, versionCode, serverKey string, since time.Time) ([]domain.Ennoblement, error)

func (*TWHelpHTTP) ListOpenServers

func (t *TWHelpHTTP) ListOpenServers(ctx context.Context, versionCode string, limit int) ([]domain.TWServer, error)

func (*TWHelpHTTP) ListTribesByTag

func (t *TWHelpHTTP) ListTribesByTag(ctx context.Context, versionCode, serverKey string, tribeTags []string) ([]domain.Tribe, error)

func (*TWHelpHTTP) ListVersions

func (t *TWHelpHTTP) ListVersions(ctx context.Context) ([]domain.TWVersion, error)

func (*TWHelpHTTP) ListVillagesByCoords

func (t *TWHelpHTTP) ListVillagesByCoords(ctx context.Context, versionCode, serverKey string, coords []string) ([]domain.Village, error)

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

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL