globalsearchv2

package
v0.0.0-...-e6eb724 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ErrCodeAPICreation = "APICreationError"

ErrCodeAPICreation ...

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalSearchServiceAPI

type GlobalSearchServiceAPI interface {
	Searches() Searches
}

ICDServiceAPI is the Cloud Internet Services API ...

func New

New ...

type Item

type Item struct {
	Name        string   `json:"name,omitempty"`
	CRN         string   `json:"crn,omitempty"`
	ServiceName string   `json:"service_name,omitempty"`
	Tags        []string `json:"tags,omitempty"`
}

type SearchBody

type SearchBody struct {
	Query  string   `json:"query"`
	Fields []string `json:"fields,omitempty"`
	Token  string   `json:"token,omitempty"`
}

type SearchResult

type SearchResult struct {
	Items       []Item `json:"items"`
	MoreData    bool   `json:"more_data"`
	Token       string `json:"token"`
	FilterError bool   `json:"filter_error"`
	PartialData int    `json:"partial_data"`
}

type Searches

type Searches interface {
	PostQuery(searchBody SearchBody) (SearchResult, error)
}

Jump to

Keyboard shortcuts

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