search

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SyntaxSep = ":"
	TypeSep   = ","
)

Search separator for the CLI

Variables

View Source
var (
	Apis  = initApis()
	Types = []string{"code", "owner", "repo"}
)

Search APIs and types for the CLI

Functions

func Run

func Run(api string, config, query 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 interface{}) error

Init is search initialization for the GraphQL API

func (GraphQl) Run

func (g GraphQl) Run(query interface{}) (interface{}, error)

Run is search implementation for the GraphQL API

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 interface{}) error

Init is search initialization for the REST API

func (Rest) Run

func (r Rest) Run(query interface{}) (interface{}, error)

Run is search implementation for the REST API

type Search interface {
	Init(config interface{}) error
	Run(query 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