cache

package
v0.0.0-...-dc025df Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: AGPL-3.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 Cache

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

func New

func New(dsnURI string) (*Cache, error)

func (*Cache) AddTagsToPath

func (c *Cache) AddTagsToPath(abs string, tags []string) error

func (*Cache) Clear

func (c *Cache) Clear() error

func (*Cache) CreateTables

func (c *Cache) CreateTables() error

func (*Cache) RemoveAllTagsFromPath

func (c *Cache) RemoveAllTagsFromPath(abs string) error

func (*Cache) RemovePath

func (c *Cache) RemovePath(abs string) error

func (*Cache) RemoveTagsFromPath

func (c *Cache) RemoveTagsFromPath(abs string, tags []string) error

func (*Cache) Search

func (c *Cache) Search(pathPrefix string, tags []string) (paths []string, err error)

type Path

type Path struct {
	ID  uint
	Abs string
}

type Tag

type Tag struct {
	ID   uint
	Name string
}

Jump to

Keyboard shortcuts

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