mysql

package
v0.0.0-...-14c02b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package mysql provides mysql backed storage for users and tasks

Index

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) Get

func (r *DefaultRepository) Get(ctx context.Context, id int64) (*todo.Todo, error)

func (*DefaultRepository) List

func (r *DefaultRepository) List(ctx context.Context) ([]*todo.Todo, error)

func (*DefaultRepository) Shutdown

func (r *DefaultRepository) Shutdown() error

func (*DefaultRepository) Store

func (r *DefaultRepository) Store(ctx context.Context, title, description string) (int64, error)

Jump to

Keyboard shortcuts

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