todos

package
v0.0.0-...-63597c3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Task

type Task struct {
	ID   string
	Text string
	Done bool
}

Task ...

type TodoService

type TodoService interface {
	Add(text string) (map[string]interface{}, error)
	List() ([]map[string]interface{}, error)
	Delete(id string) error
	Complete(id string) (map[string]interface{}, error)
}

TodoService ...

func NewTodoService

func NewTodoService(dbUser, dbPassword, dbHost, dbName string) (TodoService, error)

NewTodoService ...

type TodoSvc

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

TodoSvc ...

func (*TodoSvc) Add

func (s *TodoSvc) Add(text string) (map[string]interface{}, error)

Add ...

func (*TodoSvc) Complete

func (s *TodoSvc) Complete(id string) (map[string]interface{}, error)

Complete ...

func (*TodoSvc) Delete

func (s *TodoSvc) Delete(id string) error

Delete ...

func (*TodoSvc) List

func (s *TodoSvc) List() ([]map[string]interface{}, error)

List ...

Jump to

Keyboard shortcuts

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