bundb

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

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

func NewChecker

func NewChecker(db *bun.DB) *Checker

func (*Checker) Check

func (c *Checker) Check(ctx context.Context) error

func (*Checker) Name

func (c *Checker) Name() string

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

type Player

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

func NewPlayer

func NewPlayer(db *bun.DB) *Player

func (*Player) CreateOrUpdate

func (p *Player) CreateOrUpdate(ctx context.Context, params ...domain.CreatePlayerParams) error

func (*Player) DeleteByID

func (p *Player) DeleteByID(ctx context.Context, ids ...int64) error

func (*Player) List

func (p *Player) List(ctx context.Context, params domain.ListPlayersParams) ([]domain.Player, int64, error)

type Server

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

func NewServer

func NewServer(db *bun.DB) *Server

func (*Server) CreateOrUpdate

func (s *Server) CreateOrUpdate(ctx context.Context, params ...domain.CreateServerParams) ([]domain.Server, error)

func (*Server) List

func (s *Server) List(ctx context.Context, params domain.ListServersParams) ([]domain.Server, int64, error)

func (*Server) UpdateByKey

func (s *Server) UpdateByKey(ctx context.Context, key string, params domain.UpdateServerParams) (domain.Server, error)

type Tribe

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

func NewTribe

func NewTribe(db *bun.DB) *Tribe

func (*Tribe) CreateOrUpdate

func (t *Tribe) CreateOrUpdate(ctx context.Context, params ...domain.CreateTribeParams) error

func (*Tribe) DeleteByID

func (t *Tribe) DeleteByID(ctx context.Context, ids ...int64) error

func (*Tribe) List

func (t *Tribe) List(ctx context.Context, params domain.ListTribesParams) ([]domain.Tribe, int64, error)

func (*Tribe) UpdateDominance

func (t *Tribe) UpdateDominance(ctx context.Context, serverKey string, numPlayerVillages int64) error

type Version

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

func NewVersion

func NewVersion(db *bun.DB) *Version

func (*Version) GetByCode

func (v *Version) GetByCode(ctx context.Context, code string) (domain.Version, error)

func (*Version) List

type Village

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

func NewVillage

func NewVillage(db *bun.DB) *Village

func (*Village) CreateOrUpdate

func (v *Village) CreateOrUpdate(ctx context.Context, params ...domain.CreateVillageParams) error

func (*Village) List

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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