repository

package
v0.0.0-...-d7ebb26 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CATEGORY = "category"
)
View Source
const (
	MEMO = "memo"
)

Variables

This section is empty.

Functions

func AddCategory

func AddCategory(category model.Category) error

AddCategory add category entity.

func AddMemo

func AddMemo(memo model.Memo) error

func CreateCategoryTable

func CreateCategoryTable()

func CreateMemoTable

func CreateMemoTable()

CreateMemoTable create page table on sqlite3 db

func DeleteAllCategory

func DeleteAllCategory() error

DeleteCategory

func DeleteAllMemo

func DeleteAllMemo() error

DeleteMemoById

func DeleteCategoryById

func DeleteCategoryById(id int) error

DeleteCategory

func DeleteMemoById

func DeleteMemoById(id int) error

DeleteMemoById

func GetCategories

func GetCategories() ([]model.Category, error)

GetCategories return all memodata.

func GetCategoryByName

func GetCategoryByName(name string) (model.Category, error)

GetCategories return all memodata.

func GetMemo

func GetMemo(id int) (model.Memo, error)

func GetMemos

func GetMemos() ([]model.Memo, error)

Get memos return all memodata.

func GetMemosByCategoryId

func GetMemosByCategoryId(id int) ([]model.Memo, error)

GetMemosByCategoryId returns page grepped title by input word.

func InsertDefaultCategory

func InsertDefaultCategory()

Types

This section is empty.

Jump to

Keyboard shortcuts

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