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 WithPageToken ¶
func WithStatus ¶
func WithUserID ¶
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
Click to show internal directories.
Click to hide internal directories.