player

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPlayerExists         = errors.New("player already exists")
	ErrPlayerNotFound       = errors.New("player not found")
	ErrMultiplePlayersFound = errors.New("found multiple players")
)

Functions

This section is empty.

Types

type Player

type Player struct {
	PID      int
	Nick     string
	Provider provider.Provider
	Imported time.Time
}

type Repository

type Repository interface {
	Insert(ctx context.Context, player Player) error
	InsertMany(ctx context.Context, players []Player) error
	UpdateMany(ctx context.Context, players []Player) error
	FindByPID(ctx context.Context, pid int) (Player, error)
	FindByProviderBetweenPIDs(ctx context.Context, pv provider.Provider, lower, upper int) ([]Player, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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