Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNotFound ¶
Types ¶
type TodoStorage ¶
type TodoStorage interface { Get(ctx context.Context, id int) (Todo, error) List(ctx context.Context) ([]Todo, error) Create(ctx context.Context, todo *Todo) error Update(ctx context.Context, id int, todo Todo) error Delete(ctx context.Context, id int) error }
func NewTodoStorage ¶
func NewTodoStorage(lc fx.Lifecycle, db *gorm.DB) TodoStorage
Click to show internal directories.
Click to hide internal directories.