response

package
v0.0.0-...-fea1ff7 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2017 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetResponse

type GetResponse struct {
	*Response
	Results []string `json:"results,omitempty"`
}

func NewGetResponse

func NewGetResponse(code int) *GetResponse

func (*GetResponse) GetResults

func (gr *GetResponse) GetResults() []string

type GroupResult

type GroupResult struct {
	Name string `json:"name,omitempty"`
}

type Queries

type Queries struct {
	SampleSize int64     `json:"sample_size,omitempty"`
	ResultsArr []Results `json:"results,omitempty"`
}

type QueryResponse

type QueryResponse struct {
	*Response
	QueriesArr []Queries `json:"queries",omitempty`
}

func NewQueryResponse

func NewQueryResponse(code int) *QueryResponse

type Response

type Response struct {
	Errors []string `json:"errors,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) GetErrors

func (r *Response) GetErrors() []string

func (*Response) GetStatusCode

func (r *Response) GetStatusCode() int

func (*Response) SetStatusCode

func (r *Response) SetStatusCode(code int)

type Results

type Results struct {
	Name       string              `json:"name,omitempty"`
	DataPoints []builder.DataPoint `json:"values,omitempty"`
	Tags       map[string][]string `json:"tags,omitempty"`
	Group      []GroupResult       `json:"group_by,omitempty"`
}

Jump to

Keyboard shortcuts

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