indexer

package
v0.0.0-...-9595dc2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const Version string = "0.0.1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer

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

func NewIndexer

func NewIndexer(astContent []byte, redisPool *redis.Pool, rpcUrl string) (*Indexer, error)

func (*Indexer) Run

func (i *Indexer) Run() error

type ValueContext

type ValueContext struct {
	Name        string
	Value       *ast.Value
	Queries     []*ast.Value
	QueryParams [][]int
}

func NewValueContext

func NewValueContext(name string, value *ast.Value) (ValueContext, error)

func (ValueContext) IndexKey

func (c ValueContext) IndexKey(queryIndex int, paramValues map[int]*ast.Value) (string, error)

func (ValueContext) QueryIndex

func (c ValueContext) QueryIndex(query *ast.Value) int

Jump to

Keyboard shortcuts

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