todo

package
v0.0.0-...-ebe49b8 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(store types.TodoStore, userStore types.UserStore) *Handler

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes(router *mux.Router)

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore(db *sql.DB) *Store

func (*Store) CreateTodo

func (s *Store) CreateTodo(todo types.Todo) error

func (*Store) GetTodoByID

func (s *Store) GetTodoByID(todoID string) (*types.Todo, error)

func (*Store) GetTodos

func (s *Store) GetTodos() ([]*types.Todo, error)

Jump to

Keyboard shortcuts

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