Documentation ¶
Index ¶
- func NewDB(config Config) (*sqlx.DB, error)
- type Config
- type TodoAccess
- func (a *TodoAccess) Create(ctx context.Context, todo *entity.Todo) error
- func (a *TodoAccess) Delete(ctx context.Context, id entity.TodoID) (bool, error)
- func (a *TodoAccess) Find(ctx context.Context, id entity.TodoID) (*entity.Todo, error)
- func (a *TodoAccess) List(ctx context.Context) (entity.Todos, error)
- func (a *TodoAccess) Update(ctx context.Context, todo *entity.Todo) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TodoAccess ¶
type TodoAccess struct {
// contains filtered or unexported fields
}
func NewTodoAccess ¶
func NewTodoAccess(db *sqlx.DB) *TodoAccess
Click to show internal directories.
Click to hide internal directories.