wordle

package
v0.0.0-...-febeaf7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseModule = fx.Provide(
	NewRepository,
)
View Source
var (
	ErrWordleNotFound = errors.New("wordle not found")
)

Functions

This section is empty.

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithPageSize

func WithPageSize(in int32) Option

func WithPageToken

func WithPageToken(in string) Option

func WithStatus

func WithStatus(in model.Status) Option

func WithUserID

func WithUserID(in string) Option

type Repository

type Repository interface {
	GetWordle(ctx context.Context, id string, opts ...Option) (model.Wordle, error)
	CreateWordle(ctx context.Context, in model.Wordle) (model.Wordle, error)
	UpdateWordle(ctx context.Context, in model.Wordle, opts ...Option) (model.Wordle, error)
	DeleteWordle(ctx context.Context, id string, opts ...Option) (model.Wordle, error)
	ListWordles(ctx context.Context, opts ...Option) ([]model.Wordle, string, error)
}

func NewRepository

func NewRepository(db *bun.DB) Repository

Jump to

Keyboard shortcuts

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