index

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddInIndex

func AddInIndex(gist *Gist) error

func Close

func Close() error

func Enabled

func Enabled() bool

func Open

func Open(indexFilename string) error

func RemoveFromIndex

func RemoveFromIndex(gistID uint) error

func SearchGists

func SearchGists(queryStr string, queryMetadata SearchGistMetadata, gistsIds []uint, page int) ([]uint, uint64, map[string]int, error)

Types

type Gist

type Gist struct {
	GistID     uint
	Username   string
	Title      string
	Content    string
	Filenames  []string
	Extensions []string
	Languages  []string
	CreatedAt  int64
	UpdatedAt  int64
}

type SearchGistMetadata

type SearchGistMetadata struct {
	Username  string
	Title     string
	Filename  string
	Extension string
	Language  string
}

Jump to

Keyboard shortcuts

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