monstrg

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SQLClient *sqlx.DB `validate:"nonnil"`
}

func (Config) Validate

func (c Config) Validate() error

type Storage

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

func New

func New(cfg Config) (*Storage, error)

func (*Storage) GetAvailablePartners

func (s *Storage) GetAvailablePartners(ctx context.Context) ([]entity.Monster, error)

func (*Storage) GetPartner

func (s *Storage) GetPartner(ctx context.Context, partnerID string) (*entity.Monster, error)

func (*Storage) GetPossibleEnemies

func (s *Storage) GetPossibleEnemies(ctx context.Context) ([]entity.Monster, error)

Jump to

Keyboard shortcuts

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