Documentation ¶
Index ¶
- type Memory
- func (m Memory) Clear(_ string) error
- func (m Memory) Connect() error
- func (m Memory) Create(_ string, todo *Todo) error
- func (m Memory) Delete(_ string, id string) error
- func (m Memory) Get(_ string, id string) (*Todo, error)
- func (m Memory) List(_ string) ([]Todo, error)
- func (m Memory) Update(listID string, id string, newT *Todo) (*Todo, error)
- type RedisStore
- func (r RedisStore) Clear(listID string) error
- func (r *RedisStore) Connect() error
- func (r RedisStore) Create(listID string, t *Todo) error
- func (r RedisStore) Delete(listID string, id string) error
- func (r RedisStore) Get(listID string, id string) (*Todo, error)
- func (r RedisStore) List(listID string) ([]Todo, error)
- func (r RedisStore) Update(listID string, id string, newT *Todo) (*Todo, error)
- type SQLStore
- func (s SQLStore) Clear(_ string) error
- func (s *SQLStore) Connect() error
- func (s SQLStore) Create(_ string, t *Todo) error
- func (s SQLStore) Delete(_ string, id string) error
- func (s SQLStore) Get(_ string, id string) (*Todo, error)
- func (s SQLStore) List(_ string) ([]Todo, error)
- func (s SQLStore) Update(listID string, id string, newT *Todo) (*Todo, error)
- type Store
- type Todo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisStore ¶
func NewRedisStore ¶
func NewRedisStore(dbURL string) *RedisStore
func (RedisStore) Clear ¶
func (r RedisStore) Clear(listID string) error
func (*RedisStore) Connect ¶
func (r *RedisStore) Connect() error
type SQLStore ¶
func NewSQLStore ¶
Click to show internal directories.
Click to hide internal directories.