storage

package
v1.0.1-0...-9e42952 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrNotFound

type ErrNotFound struct {
	Key string
}

func (*ErrNotFound) Error

func (e *ErrNotFound) Error() string

type Kill

type Kill struct {
	ID       string    `firestore:"id" csv:"-"`
	ServerID string    `firestore:"serverId" csv:"-"`
	Killer   string    `firestore:"killer"`
	Victim   string    `firestore:"victim"`
	Reason   string    `firestore:"reason"`
	Date     time.Time `firestore:"date"`
}

type KillCloser

type KillCloser interface {
	Close()
}

type KillDeleter

type KillDeleter interface {
	DeleteKill(ctx context.Context, id string) error
	DeleteKillsForServer(ctx context.Context, serverId string) error
}

type KillGetter

type KillGetter interface {
	GetKillByID(ctx context.Context, id string) (*Kill, error)
}

type KillLister

type KillLister interface {
	ListKillsForServer(ctx context.Context, serverId string) ([]*Kill, error)
	ListPlayerKillsForServer(ctx context.Context, serverId string, killerId string) ([]*Kill, error)
}

type KillPutter

type KillPutter interface {
	CreateKill(ctx context.Context, kill *Kill) (*Kill, error)
}

type KillStore

type KillStore interface {
	KillGetter
	KillPutter
	KillDeleter
	KillLister
	KillCloser
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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