queryimpl

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBBoltTag

func NewBBoltTag(b *bolt.DB) query.Tag

Types

type BBoltBaseTag

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

func NewBBoltBaseTag

func NewBBoltBaseTag(b *bolt.DB, bucketName string) *BBoltBaseTag

func (*BBoltBaseTag) ForEach

func (b *BBoltBaseTag) ForEach(ws model.WSName, f func(tagWithIndex *model.Tag) error) error

func (*BBoltBaseTag) Get

func (b *BBoltBaseTag) Get(ws model.WSName, id model.TagID) (tagWithIndex *model.Tag, exist bool, err error)

func (*BBoltBaseTag) ListAll

func (b *BBoltBaseTag) ListAll(ws model.WSName) (assets []*model.Tag, err error)

func (*BBoltBaseTag) ListAsSet

func (b *BBoltBaseTag) ListAsSet(ws model.WSName) (set *model.TagSet, err error)

func (*BBoltBaseTag) ListBy

func (b *BBoltBaseTag) ListBy(ws model.WSName, f func(tag *model.Tag) bool) (assets []*model.Tag, err error)

func (*BBoltBaseTag) ListByAsync

func (b *BBoltBaseTag) ListByAsync(ws model.WSName, f func(tagWithIndex *model.Tag) bool, cap int) (assetChan <-chan *model.Tag, err error)

type BBoltTag

type BBoltTag struct {
	*BBoltBaseTag
}

func (*BBoltTag) Init

func (b *BBoltTag) Init(ws model.WSName) error

FIXME: duplicated code

Jump to

Keyboard shortcuts

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