index

package
v0.0.0-...-290f48c Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

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

Index is the setlist searcher index that's loaded into memory to run analysis on setlists.

func Read

func Read(file io.Reader) (*Index, error)

Read reads an Index.

func (*Index) Query

func (i *Index) Query(ctx context.Context, q string) ([]int, error)

func (*Index) ShowDate

func (i *Index) ShowDate(id int) string

func (*Index) ShowUrl

func (i *Index) ShowUrl(id int) string

func (*Index) Songs

func (i *Index) Songs() map[string]string

func (*Index) Write

func (i *Index) Write(indexLocation string) error

type IndexWriter

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

func NewWriter

func NewWriter(indexLocation string) *IndexWriter

func (*IndexWriter) AddSetlist

func (w *IndexWriter) AddSetlist(sl *searcher.Setlist)

func (*IndexWriter) AddSong

func (w *IndexWriter) AddSong(songName, songValue string)

func (*IndexWriter) Write

func (w *IndexWriter) Write() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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