index

package
v0.0.0-...-eb79982 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexCtl

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

func NewIndexCtl

func NewIndexCtl(dbtype, dbparams string) (*IndexCtl, error)

func (*IndexCtl) Close

func (ctl *IndexCtl) Close()

func (*IndexCtl) Ping

func (ctl *IndexCtl) Ping() error

type IndexFiles

type IndexFiles struct {
	Tags map[string][]common.Reply `json:"tags"`
}

func ReformatIndexRequest

func ReformatIndexRequest(idx *IndexRequest) *IndexFiles

type IndexRequest

type IndexRequest struct {
	Files []Request `json:"files"`
}

type Indexer

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

func NewIndexer

func NewIndexer(username string, ctl *IndexCtl) (*Indexer, error)

func (*Indexer) Index

func (idx *Indexer) Index(ireq *IndexRequest) error

func (*Indexer) IndexFiles

func (idx *Indexer) IndexFiles(tag string, files []common.Reply) error

func (*Indexer) List

func (idx *Indexer) List(lr *ListRequest) (*ListReply, error)

func (*Indexer) ListIndex

func (idx *Indexer) ListIndex(tag string) ([]common.Reply, error)

func (*Indexer) ListMeta

func (idx *Indexer) ListMeta() (*ListReply, error)

type LReply

type LReply struct {
	Tag  string         `json:"tag"`
	Keys []common.Reply `json:"keys"`
}

type ListReply

type ListReply struct {
	Tags []LReply `json:"tags"`
}

type ListRequest

type ListRequest struct {
	Tags []string `json:"tags"`
}

type Request

type Request struct {
	File common.Reply `json:"file"`
	Tags []string     `json:"tags"`
}

Jump to

Keyboard shortcuts

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