search

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QualifierSep = ","
	SearchSep    = ","
	SyntaxSep    = ":"
)

Search separator for the CLI

Variables

View Source
var (
	Api  = initApi()
	Type = []string{"code", "repo"}
)

Search APIs and types for the CLI

Functions

func Run

func Run(api string, config map[string]interface{}, qualifier, srch map[string][]interface{}) ([]interface{}, error)

Run is search implementation for the API

Types

type GraphQl

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

GraphQl is search structure for the GraphQL API

func (*GraphQl) Init

func (g *GraphQl) Init(config map[string]interface{}) error

Init is search initialization for the GraphQL API

func (GraphQl) Run

func (g GraphQl) Run(qualifier, srch map[string][]interface{}) ([]interface{}, error)

Run is search implementation for the GraphQL API

type Request added in v1.0.2

type Request struct {
	Url string
	Val url.Values
}

Request structure for the runtime

type Rest

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

Rest is search structure for the REST API

func (*Rest) Init

func (r *Rest) Init(config map[string]interface{}) error

Init is search initialization for the REST API

func (Rest) Run

func (r Rest) Run(qualifier, srch map[string][]interface{}) ([]interface{}, error)

Run is search implementation for the REST API

type Search interface {
	Init(config map[string]interface{}) error
	Run(qualifier, srch map[string][]interface{}) ([]interface{}, error)
}

Search interface for the API

Jump to

Keyboard shortcuts

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