mongo

package
v0.0.0-...-88bf645 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const CollectionName = "tags"

Variables

This section is empty.

Functions

func Init

func Init(con string, db string) error

Types

type Provider

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

func New

func New() (p Provider, err error)

func (*Provider) Close

func (p *Provider) Close() error

func (*Provider) Delete

func (p *Provider) Delete(t tag.Tag) error

func (*Provider) IsTagExist

func (p *Provider) IsTagExist(name string) bool

func (*Provider) NeedSetup

func (p *Provider) NeedSetup() (b bool, err error)

func (*Provider) Read

func (p *Provider) Read(name string) (t tag.Tag, err error)

func (*Provider) ReadAll

func (p *Provider) ReadAll() (tags []tag.Tag, err error)

func (*Provider) Write

func (p *Provider) Write(t tag.Tag) error

Jump to

Keyboard shortcuts

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