db

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllNovel

func GetAllNovel() ([]*dtype.Novel, error)

GetAllNovel 获取所有的小说

Types

type NovelCURD

type NovelCURD struct {
	DB *hltool.BoltDB
}

NovelCURD NovelCURD

func NewNovelCURD

func NewNovelCURD() *NovelCURD

NewNovelCURD NewNovelCURD

func (*NovelCURD) Delete

func (n *NovelCURD) Delete(name string) error

Delete 删除

func (*NovelCURD) Get

func (n *NovelCURD) Get(name string) (*dtype.Novel, error)

Get Get

func (*NovelCURD) GetAll

func (n *NovelCURD) GetAll() (map[string][]byte, error)

GetAll GetAll

func (*NovelCURD) Update

func (n *NovelCURD) Update(novel *dtype.Novel) error

Update 更新

Jump to

Keyboard shortcuts

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