response

package
v0.0.0-...-560b2d4 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVPagination

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

func (CSVPagination) Cursor

func (p CSVPagination) Cursor() string

func (CSVPagination) NextQuery

func (p CSVPagination) NextQuery() string

func (CSVPagination) Page

func (p CSVPagination) Page() int

func (CSVPagination) Pages

func (p CSVPagination) Pages() int

func (CSVPagination) PerPage

func (p CSVPagination) PerPage() int

func (CSVPagination) String

func (p CSVPagination) String() string

func (CSVPagination) Total

func (p CSVPagination) Total() int

type CSVResponse

type CSVResponse struct {
	api.APIResponse
	// contains filtered or unexported fields
}

func ParseCSVResponse

func ParseCSVResponse(http_rsp *http.Response) (*CSVResponse, error)

func (CSVResponse) Ok

func (rsp CSVResponse) Ok() (bool, api.APIError)

func (CSVResponse) Pagination

func (rsp CSVResponse) Pagination() (api.APIPagination, error)

func (CSVResponse) Places

func (rsp CSVResponse) Places() ([]api.APIPlacesResult, error)

func (CSVResponse) Raw

func (rsp CSVResponse) Raw() []byte

func (CSVResponse) String

func (rsp CSVResponse) String() string

type JSONError

type JSONError struct {
	api.APIError
	// contains filtered or unexported fields
}

func (JSONError) Code

func (e JSONError) Code() int64

func (JSONError) Message

func (e JSONError) Message() string

func (JSONError) String

func (e JSONError) String() string

type JSONPagination

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

func (JSONPagination) Cursor

func (p JSONPagination) Cursor() string

func (JSONPagination) NextQuery

func (p JSONPagination) NextQuery() string

func (JSONPagination) Page

func (p JSONPagination) Page() int

func (JSONPagination) Pages

func (p JSONPagination) Pages() int

func (JSONPagination) PerPage

func (p JSONPagination) PerPage() int

func (JSONPagination) String

func (p JSONPagination) String() string

func (JSONPagination) Total

func (p JSONPagination) Total() int

type JSONResponse

type JSONResponse struct {
	api.APIResponse
	// contains filtered or unexported fields
}

func ParseJSONResponse

func ParseJSONResponse(http_rsp *http.Response) (*JSONResponse, error)

func (JSONResponse) Ok

func (rsp JSONResponse) Ok() (bool, api.APIError)

func (JSONResponse) Pagination

func (rsp JSONResponse) Pagination() (api.APIPagination, error)

func (JSONResponse) Places

func (rsp JSONResponse) Places() ([]api.APIPlacesResult, error)

func (JSONResponse) Raw

func (rsp JSONResponse) Raw() []byte

func (JSONResponse) Stat

func (rsp JSONResponse) Stat() string

func (JSONResponse) String

func (rsp JSONResponse) String() string

type MetaPagination

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

func (MetaPagination) Cursor

func (p MetaPagination) Cursor() string

func (MetaPagination) NextQuery

func (p MetaPagination) NextQuery() string

func (MetaPagination) Page

func (p MetaPagination) Page() int

func (MetaPagination) Pages

func (p MetaPagination) Pages() int

func (MetaPagination) PerPage

func (p MetaPagination) PerPage() int

func (MetaPagination) String

func (p MetaPagination) String() string

func (MetaPagination) Total

func (p MetaPagination) Total() int

type MetaResponse

type MetaResponse struct {
	api.APIResponse
	// contains filtered or unexported fields
}

func ParseMetaResponse

func ParseMetaResponse(http_rsp *http.Response) (*MetaResponse, error)

func (MetaResponse) Ok

func (rsp MetaResponse) Ok() (bool, api.APIError)

func (MetaResponse) Pagination

func (rsp MetaResponse) Pagination() (api.APIPagination, error)

func (MetaResponse) Places

func (rsp MetaResponse) Places() ([]api.APIPlacesResult, error)

func (MetaResponse) Raw

func (rsp MetaResponse) Raw() []byte

func (MetaResponse) String

func (rsp MetaResponse) String() string

Jump to

Keyboard shortcuts

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