workflow

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseModule = fx.Provide(
	NewEngine,
)

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine(
	wordRepository word.Repository,
	wordleRepository wordle.Repository,
) *Engine

func (Engine) CreateWordle

func (e Engine) CreateWordle(ctx context.Context, in model.Wordle) (model.Wordle, error)

func (Engine) DeleteWordle

func (e Engine) DeleteWordle(ctx context.Context, id string, opts ...wordle.Option) (model.Wordle, error)

func (Engine) GetWordle

func (e Engine) GetWordle(ctx context.Context, id string, opts ...wordle.Option) (model.Wordle, error)

func (Engine) ListWordles

func (e Engine) ListWordles(ctx context.Context, opts ...wordle.Option) ([]model.Wordle, string, error)

func (Engine) UpdateWordle

func (e Engine) UpdateWordle(ctx context.Context, in model.Wordle, opts ...wordle.Option) (model.Wordle, error)

Jump to

Keyboard shortcuts

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