Documentation ¶
Overview ¶
Package mysql provides mysql backed storage for users and tasks
Index ¶
- type DefaultRepository
- func (r *DefaultRepository) Delete(ctx context.Context, id int64) error
- func (r *DefaultRepository) Get(ctx context.Context, id int64) (*todo.Todo, error)
- func (r *DefaultRepository) List(ctx context.Context) ([]*todo.Todo, error)
- func (r *DefaultRepository) Shutdown() error
- func (r *DefaultRepository) Store(ctx context.Context, title, description string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultRepository ¶
type DefaultRepository struct {
// contains filtered or unexported fields
}
func NewDefaultRepository ¶
func NewDefaultRepository(credentials string) (*DefaultRepository, error)
func (*DefaultRepository) Delete ¶
func (r *DefaultRepository) Delete(ctx context.Context, id int64) error
func (*DefaultRepository) Shutdown ¶
func (r *DefaultRepository) Shutdown() error
Click to show internal directories.
Click to hide internal directories.