Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type DetailBadRequest
- func (o *DetailBadRequest) Error() string
- func (o *DetailBadRequest) IsClientError() bool
- func (o *DetailBadRequest) IsCode(code int) bool
- func (o *DetailBadRequest) IsRedirect() bool
- func (o *DetailBadRequest) IsServerError() bool
- func (o *DetailBadRequest) IsSuccess() bool
- func (o *DetailBadRequest) String() string
- type DetailForbidden
- func (o *DetailForbidden) Error() string
- func (o *DetailForbidden) IsClientError() bool
- func (o *DetailForbidden) IsCode(code int) bool
- func (o *DetailForbidden) IsRedirect() bool
- func (o *DetailForbidden) IsServerError() bool
- func (o *DetailForbidden) IsSuccess() bool
- func (o *DetailForbidden) String() string
- type DetailNotFound
- func (o *DetailNotFound) Error() string
- func (o *DetailNotFound) IsClientError() bool
- func (o *DetailNotFound) IsCode(code int) bool
- func (o *DetailNotFound) IsRedirect() bool
- func (o *DetailNotFound) IsServerError() bool
- func (o *DetailNotFound) IsSuccess() bool
- func (o *DetailNotFound) String() string
- type DetailOK
- func (o *DetailOK) Error() string
- func (o *DetailOK) GetPayload() *models.NetSearchResponse
- func (o *DetailOK) IsClientError() bool
- func (o *DetailOK) IsCode(code int) bool
- func (o *DetailOK) IsRedirect() bool
- func (o *DetailOK) IsServerError() bool
- func (o *DetailOK) IsSuccess() bool
- func (o *DetailOK) String() string
- type DetailParams
- func (o *DetailParams) SetContext(ctx context.Context)
- func (o *DetailParams) SetDefaults()
- func (o *DetailParams) SetHTTPClient(client *http.Client)
- func (o *DetailParams) SetNetid(netid *string)
- func (o *DetailParams) SetReverseAddress(reverseAddress *string)
- func (o *DetailParams) SetTimeout(timeout time.Duration)
- func (o *DetailParams) WithContext(ctx context.Context) *DetailParams
- func (o *DetailParams) WithDefaults() *DetailParams
- func (o *DetailParams) WithHTTPClient(client *http.Client) *DetailParams
- func (o *DetailParams) WithNetid(netid *string) *DetailParams
- func (o *DetailParams) WithReverseAddress(reverseAddress *string) *DetailParams
- func (o *DetailParams) WithTimeout(timeout time.Duration) *DetailParams
- func (o *DetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DetailReader
- type DetailTooManyRequests
- func (o *DetailTooManyRequests) Error() string
- func (o *DetailTooManyRequests) IsClientError() bool
- func (o *DetailTooManyRequests) IsCode(code int) bool
- func (o *DetailTooManyRequests) IsRedirect() bool
- func (o *DetailTooManyRequests) IsServerError() bool
- func (o *DetailTooManyRequests) IsSuccess() bool
- func (o *DetailTooManyRequests) String() string
- type DetailUnauthorized
- func (o *DetailUnauthorized) Error() string
- func (o *DetailUnauthorized) IsClientError() bool
- func (o *DetailUnauthorized) IsCode(code int) bool
- func (o *DetailUnauthorized) IsRedirect() bool
- func (o *DetailUnauthorized) IsServerError() bool
- func (o *DetailUnauthorized) IsSuccess() bool
- func (o *DetailUnauthorized) String() string
- type SearchBadRequest
- func (o *SearchBadRequest) Error() string
- func (o *SearchBadRequest) IsClientError() bool
- func (o *SearchBadRequest) IsCode(code int) bool
- func (o *SearchBadRequest) IsRedirect() bool
- func (o *SearchBadRequest) IsServerError() bool
- func (o *SearchBadRequest) IsSuccess() bool
- func (o *SearchBadRequest) String() string
- type SearchOK
- func (o *SearchOK) Error() string
- func (o *SearchOK) GetPayload() *models.NetSearchResponse
- func (o *SearchOK) IsClientError() bool
- func (o *SearchOK) IsCode(code int) bool
- func (o *SearchOK) IsRedirect() bool
- func (o *SearchOK) IsServerError() bool
- func (o *SearchOK) IsSuccess() bool
- func (o *SearchOK) String() string
- type SearchParams
- func (o *SearchParams) SetCity(city *string)
- func (o *SearchParams) SetClosestLat(closestLat *float64)
- func (o *SearchParams) SetClosestLong(closestLong *float64)
- func (o *SearchParams) SetContext(ctx context.Context)
- func (o *SearchParams) SetCountry(country *string)
- func (o *SearchParams) SetDefaults()
- func (o *SearchParams) SetEndTransID(endTransID *string)
- func (o *SearchParams) SetFirsttime(firsttime *string)
- func (o *SearchParams) SetHTTPClient(client *http.Client)
- func (o *SearchParams) SetHouseNumber(houseNumber *string)
- func (o *SearchParams) SetLasttime(lasttime *string)
- func (o *SearchParams) SetLastupdt(lastupdt *string)
- func (o *SearchParams) SetLatrange1(latrange1 *float64)
- func (o *SearchParams) SetLatrange2(latrange2 *float64)
- func (o *SearchParams) SetLongrange1(longrange1 *float64)
- func (o *SearchParams) SetLongrange2(longrange2 *float64)
- func (o *SearchParams) SetMinQoS(minQoS *int32)
- func (o *SearchParams) SetName(name *string)
- func (o *SearchParams) SetNamelike(namelike *string)
- func (o *SearchParams) SetNetid(netid *string)
- func (o *SearchParams) SetNotmine(notmine *string)
- func (o *SearchParams) SetOnlymine(onlymine *string)
- func (o *SearchParams) SetPostalCode(postalCode *string)
- func (o *SearchParams) SetRegion(region *string)
- func (o *SearchParams) SetResultsPerPage(resultsPerPage *int64)
- func (o *SearchParams) SetRoad(road *string)
- func (o *SearchParams) SetSearchAfter(searchAfter *string)
- func (o *SearchParams) SetShowBle(showBle *string)
- func (o *SearchParams) SetShowBt(showBt *string)
- func (o *SearchParams) SetStartTransID(startTransID *string)
- func (o *SearchParams) SetTimeout(timeout time.Duration)
- func (o *SearchParams) SetVariance(variance *float64)
- func (o *SearchParams) WithCity(city *string) *SearchParams
- func (o *SearchParams) WithClosestLat(closestLat *float64) *SearchParams
- func (o *SearchParams) WithClosestLong(closestLong *float64) *SearchParams
- func (o *SearchParams) WithContext(ctx context.Context) *SearchParams
- func (o *SearchParams) WithCountry(country *string) *SearchParams
- func (o *SearchParams) WithDefaults() *SearchParams
- func (o *SearchParams) WithEndTransID(endTransID *string) *SearchParams
- func (o *SearchParams) WithFirsttime(firsttime *string) *SearchParams
- func (o *SearchParams) WithHTTPClient(client *http.Client) *SearchParams
- func (o *SearchParams) WithHouseNumber(houseNumber *string) *SearchParams
- func (o *SearchParams) WithLasttime(lasttime *string) *SearchParams
- func (o *SearchParams) WithLastupdt(lastupdt *string) *SearchParams
- func (o *SearchParams) WithLatrange1(latrange1 *float64) *SearchParams
- func (o *SearchParams) WithLatrange2(latrange2 *float64) *SearchParams
- func (o *SearchParams) WithLongrange1(longrange1 *float64) *SearchParams
- func (o *SearchParams) WithLongrange2(longrange2 *float64) *SearchParams
- func (o *SearchParams) WithMinQoS(minQoS *int32) *SearchParams
- func (o *SearchParams) WithName(name *string) *SearchParams
- func (o *SearchParams) WithNamelike(namelike *string) *SearchParams
- func (o *SearchParams) WithNetid(netid *string) *SearchParams
- func (o *SearchParams) WithNotmine(notmine *string) *SearchParams
- func (o *SearchParams) WithOnlymine(onlymine *string) *SearchParams
- func (o *SearchParams) WithPostalCode(postalCode *string) *SearchParams
- func (o *SearchParams) WithRegion(region *string) *SearchParams
- func (o *SearchParams) WithResultsPerPage(resultsPerPage *int64) *SearchParams
- func (o *SearchParams) WithRoad(road *string) *SearchParams
- func (o *SearchParams) WithSearchAfter(searchAfter *string) *SearchParams
- func (o *SearchParams) WithShowBle(showBle *string) *SearchParams
- func (o *SearchParams) WithShowBt(showBt *string) *SearchParams
- func (o *SearchParams) WithStartTransID(startTransID *string) *SearchParams
- func (o *SearchParams) WithTimeout(timeout time.Duration) *SearchParams
- func (o *SearchParams) WithVariance(variance *float64) *SearchParams
- func (o *SearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SearchPaymentRequired
- func (o *SearchPaymentRequired) Error() string
- func (o *SearchPaymentRequired) IsClientError() bool
- func (o *SearchPaymentRequired) IsCode(code int) bool
- func (o *SearchPaymentRequired) IsRedirect() bool
- func (o *SearchPaymentRequired) IsServerError() bool
- func (o *SearchPaymentRequired) IsSuccess() bool
- func (o *SearchPaymentRequired) String() string
- type SearchReader
- type SearchTooManyRequests
- func (o *SearchTooManyRequests) Error() string
- func (o *SearchTooManyRequests) IsClientError() bool
- func (o *SearchTooManyRequests) IsCode(code int) bool
- func (o *SearchTooManyRequests) IsRedirect() bool
- func (o *SearchTooManyRequests) IsServerError() bool
- func (o *SearchTooManyRequests) IsSuccess() bool
- func (o *SearchTooManyRequests) String() string
- type SearchUnauthorized
- func (o *SearchUnauthorized) Error() string
- func (o *SearchUnauthorized) IsClientError() bool
- func (o *SearchUnauthorized) IsCode(code int) bool
- func (o *SearchUnauthorized) IsRedirect() bool
- func (o *SearchUnauthorized) IsServerError() bool
- func (o *SearchUnauthorized) IsSuccess() bool
- func (o *SearchUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for bluetooth search and information tools API
func (*Client) Detail ¶
func (a *Client) Detail(params *DetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailOK, error)
Detail gets details and observation records for a single network
Provide unique information for a Bluetooth network. API and session authentication default to a page size of 100 results/page. Number of daily queries allowed per user are throttled based on history and participation. Detail endpoints are NOT included in COMMAPI subscriptions at this time.
func (*Client) Search ¶
func (a *Client) Search(params *SearchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchOK, error)
Search searches the wi g l e bluetooth database
Query the WiGLE database for paginated results based on multiple criteria. API and session authentication default to a page size of 100 results/page. COMMAPI defaults to a page size of 25 with a maximum of 1000 results per return. Number of daily queries allowed per user are throttled based on history and participation. Search endpoints are the only feature included in COMMAPI subscriptions at this time.<br><br>To get next page of results put the previous request's searchAfter value as a parameter in the new request's searchAfter.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { Detail(params *DetailParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DetailOK, error) Search(params *SearchParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new bluetooth search and information tools API client.
type DetailBadRequest ¶
type DetailBadRequest struct { }
DetailBadRequest describes a response with status code 400, with default header values.
Request body error
func NewDetailBadRequest ¶
func NewDetailBadRequest() *DetailBadRequest
NewDetailBadRequest creates a DetailBadRequest with default headers values
func (*DetailBadRequest) Error ¶
func (o *DetailBadRequest) Error() string
func (*DetailBadRequest) IsClientError ¶
func (o *DetailBadRequest) IsClientError() bool
IsClientError returns true when this detail bad request response has a 4xx status code
func (*DetailBadRequest) IsCode ¶
func (o *DetailBadRequest) IsCode(code int) bool
IsCode returns true when this detail bad request response a status code equal to that given
func (*DetailBadRequest) IsRedirect ¶
func (o *DetailBadRequest) IsRedirect() bool
IsRedirect returns true when this detail bad request response has a 3xx status code
func (*DetailBadRequest) IsServerError ¶
func (o *DetailBadRequest) IsServerError() bool
IsServerError returns true when this detail bad request response has a 5xx status code
func (*DetailBadRequest) IsSuccess ¶
func (o *DetailBadRequest) IsSuccess() bool
IsSuccess returns true when this detail bad request response has a 2xx status code
func (*DetailBadRequest) String ¶
func (o *DetailBadRequest) String() string
type DetailForbidden ¶
type DetailForbidden struct { }
DetailForbidden describes a response with status code 403, with default header values.
Commercial request made for non-commercial resource
func NewDetailForbidden ¶
func NewDetailForbidden() *DetailForbidden
NewDetailForbidden creates a DetailForbidden with default headers values
func (*DetailForbidden) Error ¶
func (o *DetailForbidden) Error() string
func (*DetailForbidden) IsClientError ¶
func (o *DetailForbidden) IsClientError() bool
IsClientError returns true when this detail forbidden response has a 4xx status code
func (*DetailForbidden) IsCode ¶
func (o *DetailForbidden) IsCode(code int) bool
IsCode returns true when this detail forbidden response a status code equal to that given
func (*DetailForbidden) IsRedirect ¶
func (o *DetailForbidden) IsRedirect() bool
IsRedirect returns true when this detail forbidden response has a 3xx status code
func (*DetailForbidden) IsServerError ¶
func (o *DetailForbidden) IsServerError() bool
IsServerError returns true when this detail forbidden response has a 5xx status code
func (*DetailForbidden) IsSuccess ¶
func (o *DetailForbidden) IsSuccess() bool
IsSuccess returns true when this detail forbidden response has a 2xx status code
func (*DetailForbidden) String ¶
func (o *DetailForbidden) String() string
type DetailNotFound ¶
type DetailNotFound struct { }
DetailNotFound describes a response with status code 404, with default header values.
No network records matching search criteria found
func NewDetailNotFound ¶
func NewDetailNotFound() *DetailNotFound
NewDetailNotFound creates a DetailNotFound with default headers values
func (*DetailNotFound) Error ¶
func (o *DetailNotFound) Error() string
func (*DetailNotFound) IsClientError ¶
func (o *DetailNotFound) IsClientError() bool
IsClientError returns true when this detail not found response has a 4xx status code
func (*DetailNotFound) IsCode ¶
func (o *DetailNotFound) IsCode(code int) bool
IsCode returns true when this detail not found response a status code equal to that given
func (*DetailNotFound) IsRedirect ¶
func (o *DetailNotFound) IsRedirect() bool
IsRedirect returns true when this detail not found response has a 3xx status code
func (*DetailNotFound) IsServerError ¶
func (o *DetailNotFound) IsServerError() bool
IsServerError returns true when this detail not found response has a 5xx status code
func (*DetailNotFound) IsSuccess ¶
func (o *DetailNotFound) IsSuccess() bool
IsSuccess returns true when this detail not found response has a 2xx status code
func (*DetailNotFound) String ¶
func (o *DetailNotFound) String() string
type DetailOK ¶
type DetailOK struct {
Payload *models.NetSearchResponse
}
DetailOK describes a response with status code 200, with default header values.
Request succeeded
func NewDetailOK ¶
func NewDetailOK() *DetailOK
NewDetailOK creates a DetailOK with default headers values
func (*DetailOK) GetPayload ¶
func (o *DetailOK) GetPayload() *models.NetSearchResponse
func (*DetailOK) IsClientError ¶
IsClientError returns true when this detail o k response has a 4xx status code
func (*DetailOK) IsCode ¶
IsCode returns true when this detail o k response a status code equal to that given
func (*DetailOK) IsRedirect ¶
IsRedirect returns true when this detail o k response has a 3xx status code
func (*DetailOK) IsServerError ¶
IsServerError returns true when this detail o k response has a 5xx status code
type DetailParams ¶
type DetailParams struct { /* Netid. The full Bluetooth Device ID to search */ Netid *string /* ReverseAddress. Reverse geocode for an approximate address */ ReverseAddress *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DetailParams contains all the parameters to send to the API endpoint
for the detail operation. Typically these are written to a http.Request.
func NewDetailParams ¶
func NewDetailParams() *DetailParams
NewDetailParams creates a new DetailParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDetailParamsWithContext ¶
func NewDetailParamsWithContext(ctx context.Context) *DetailParams
NewDetailParamsWithContext creates a new DetailParams object with the ability to set a context for a request.
func NewDetailParamsWithHTTPClient ¶
func NewDetailParamsWithHTTPClient(client *http.Client) *DetailParams
NewDetailParamsWithHTTPClient creates a new DetailParams object with the ability to set a custom HTTPClient for a request.
func NewDetailParamsWithTimeout ¶
func NewDetailParamsWithTimeout(timeout time.Duration) *DetailParams
NewDetailParamsWithTimeout creates a new DetailParams object with the ability to set a timeout on a request.
func (*DetailParams) SetContext ¶
func (o *DetailParams) SetContext(ctx context.Context)
SetContext adds the context to the detail params
func (*DetailParams) SetDefaults ¶
func (o *DetailParams) SetDefaults()
SetDefaults hydrates default values in the detail params (not the query body).
All values with no default are reset to their zero value.
func (*DetailParams) SetHTTPClient ¶
func (o *DetailParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the detail params
func (*DetailParams) SetNetid ¶
func (o *DetailParams) SetNetid(netid *string)
SetNetid adds the netid to the detail params
func (*DetailParams) SetReverseAddress ¶
func (o *DetailParams) SetReverseAddress(reverseAddress *string)
SetReverseAddress adds the reverseAddress to the detail params
func (*DetailParams) SetTimeout ¶
func (o *DetailParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the detail params
func (*DetailParams) WithContext ¶
func (o *DetailParams) WithContext(ctx context.Context) *DetailParams
WithContext adds the context to the detail params
func (*DetailParams) WithDefaults ¶
func (o *DetailParams) WithDefaults() *DetailParams
WithDefaults hydrates default values in the detail params (not the query body).
All values with no default are reset to their zero value.
func (*DetailParams) WithHTTPClient ¶
func (o *DetailParams) WithHTTPClient(client *http.Client) *DetailParams
WithHTTPClient adds the HTTPClient to the detail params
func (*DetailParams) WithNetid ¶
func (o *DetailParams) WithNetid(netid *string) *DetailParams
WithNetid adds the netid to the detail params
func (*DetailParams) WithReverseAddress ¶
func (o *DetailParams) WithReverseAddress(reverseAddress *string) *DetailParams
WithReverseAddress adds the reverseAddress to the detail params
func (*DetailParams) WithTimeout ¶
func (o *DetailParams) WithTimeout(timeout time.Duration) *DetailParams
WithTimeout adds the timeout to the detail params
func (*DetailParams) WriteToRequest ¶
func (o *DetailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DetailReader ¶
type DetailReader struct {
// contains filtered or unexported fields
}
DetailReader is a Reader for the Detail structure.
func (*DetailReader) ReadResponse ¶
func (o *DetailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DetailTooManyRequests ¶
type DetailTooManyRequests struct { }
DetailTooManyRequests describes a response with status code 429, with default header values.
too many queries today.
func NewDetailTooManyRequests ¶
func NewDetailTooManyRequests() *DetailTooManyRequests
NewDetailTooManyRequests creates a DetailTooManyRequests with default headers values
func (*DetailTooManyRequests) Error ¶
func (o *DetailTooManyRequests) Error() string
func (*DetailTooManyRequests) IsClientError ¶
func (o *DetailTooManyRequests) IsClientError() bool
IsClientError returns true when this detail too many requests response has a 4xx status code
func (*DetailTooManyRequests) IsCode ¶
func (o *DetailTooManyRequests) IsCode(code int) bool
IsCode returns true when this detail too many requests response a status code equal to that given
func (*DetailTooManyRequests) IsRedirect ¶
func (o *DetailTooManyRequests) IsRedirect() bool
IsRedirect returns true when this detail too many requests response has a 3xx status code
func (*DetailTooManyRequests) IsServerError ¶
func (o *DetailTooManyRequests) IsServerError() bool
IsServerError returns true when this detail too many requests response has a 5xx status code
func (*DetailTooManyRequests) IsSuccess ¶
func (o *DetailTooManyRequests) IsSuccess() bool
IsSuccess returns true when this detail too many requests response has a 2xx status code
func (*DetailTooManyRequests) String ¶
func (o *DetailTooManyRequests) String() string
type DetailUnauthorized ¶
type DetailUnauthorized struct { }
DetailUnauthorized describes a response with status code 401, with default header values.
Not Authorized
func NewDetailUnauthorized ¶
func NewDetailUnauthorized() *DetailUnauthorized
NewDetailUnauthorized creates a DetailUnauthorized with default headers values
func (*DetailUnauthorized) Error ¶
func (o *DetailUnauthorized) Error() string
func (*DetailUnauthorized) IsClientError ¶
func (o *DetailUnauthorized) IsClientError() bool
IsClientError returns true when this detail unauthorized response has a 4xx status code
func (*DetailUnauthorized) IsCode ¶
func (o *DetailUnauthorized) IsCode(code int) bool
IsCode returns true when this detail unauthorized response a status code equal to that given
func (*DetailUnauthorized) IsRedirect ¶
func (o *DetailUnauthorized) IsRedirect() bool
IsRedirect returns true when this detail unauthorized response has a 3xx status code
func (*DetailUnauthorized) IsServerError ¶
func (o *DetailUnauthorized) IsServerError() bool
IsServerError returns true when this detail unauthorized response has a 5xx status code
func (*DetailUnauthorized) IsSuccess ¶
func (o *DetailUnauthorized) IsSuccess() bool
IsSuccess returns true when this detail unauthorized response has a 2xx status code
func (*DetailUnauthorized) String ¶
func (o *DetailUnauthorized) String() string
type SearchBadRequest ¶
type SearchBadRequest struct { }
SearchBadRequest describes a response with status code 400, with default header values.
Request body error
func NewSearchBadRequest ¶
func NewSearchBadRequest() *SearchBadRequest
NewSearchBadRequest creates a SearchBadRequest with default headers values
func (*SearchBadRequest) Error ¶
func (o *SearchBadRequest) Error() string
func (*SearchBadRequest) IsClientError ¶
func (o *SearchBadRequest) IsClientError() bool
IsClientError returns true when this search bad request response has a 4xx status code
func (*SearchBadRequest) IsCode ¶
func (o *SearchBadRequest) IsCode(code int) bool
IsCode returns true when this search bad request response a status code equal to that given
func (*SearchBadRequest) IsRedirect ¶
func (o *SearchBadRequest) IsRedirect() bool
IsRedirect returns true when this search bad request response has a 3xx status code
func (*SearchBadRequest) IsServerError ¶
func (o *SearchBadRequest) IsServerError() bool
IsServerError returns true when this search bad request response has a 5xx status code
func (*SearchBadRequest) IsSuccess ¶
func (o *SearchBadRequest) IsSuccess() bool
IsSuccess returns true when this search bad request response has a 2xx status code
func (*SearchBadRequest) String ¶
func (o *SearchBadRequest) String() string
type SearchOK ¶
type SearchOK struct {
Payload *models.NetSearchResponse
}
SearchOK describes a response with status code 200, with default header values.
Request succeeded
func NewSearchOK ¶
func NewSearchOK() *SearchOK
NewSearchOK creates a SearchOK with default headers values
func (*SearchOK) GetPayload ¶
func (o *SearchOK) GetPayload() *models.NetSearchResponse
func (*SearchOK) IsClientError ¶
IsClientError returns true when this search o k response has a 4xx status code
func (*SearchOK) IsCode ¶
IsCode returns true when this search o k response a status code equal to that given
func (*SearchOK) IsRedirect ¶
IsRedirect returns true when this search o k response has a 3xx status code
func (*SearchOK) IsServerError ¶
IsServerError returns true when this search o k response has a 5xx status code
type SearchParams ¶
type SearchParams struct { /* City. Street address city */ City *string /* ClosestLat. Latitude to order by closest network (requires closestLong) */ ClosestLat *float64 /* ClosestLong. Longitude to order by closest network (requires closestLat) */ ClosestLong *float64 /* Country. Street address country */ Country *string /* EndTransID. Latest transid by which to bound (year-level precision only), format 'yyyyMMdd-00000' */ EndTransID *string /* Firsttime. Filter points by when they were first created (more recent than this value), condensed date/time numeric string format 'yyyyMMdd[hhmm[ss]]' */ Firsttime *string /* HouseNumber. Street address house number */ HouseNumber *string /* Lasttime. Filter points by how recently they've had data submitted (more recent than this value), condensed date/time numeric string format 'yyyyMMdd[hhmm[ss]]' */ Lasttime *string /* Lastupdt. Filter points by how recently they've been updated (more recent than this value), condensed date/time numeric string format 'yyyyMMdd[hhmm[ss]]' */ Lastupdt *string /* Latrange1. Lesser of two latitudes by which to bound the search (specify both) */ Latrange1 *float64 /* Latrange2. Greater of two latitudes by which to bound the search (specify both) */ Latrange2 *float64 /* Longrange1. Lesser of two longitudes by which to bound the search (specify both) */ Longrange1 *float64 /* Longrange2. Greater of two longitudes by which to bound the search (specify both) */ Longrange2 *float64 /* MinQoS. Minimum Quality of Signal (0-7). Format: int32 */ MinQoS *int32 /* Name. Include only networks exactly matching the string network name. */ Name *string /* Namelike. Include only networks matching the string network name, allowing wildcards '%' (any string) and '_' (any character). */ Namelike *string /* Netid. Include only networks matching the string network BSSID, e.g. '0A:2C:EF:3D:25:1B' or '0A:2C:EF'. The first three octets are required. */ Netid *string /* Notmine. Only search for networks first seen by other users */ Notmine *string /* Onlymine. Search only for points first discovered by the current user. Use any string to set, leave unset for general search. Can't be used with COMMAPI auth, since these are points you have locally. Default: "false" */ Onlymine *string /* PostalCode. Street address postal code */ PostalCode *string /* Region. Street address region */ Region *string /* ResultsPerPage. How many results to return per request. Defaults to 25 for COMMAPI, 100 for site. Bounded at 1000 for COMMAPI, 100 for site. Format: int64 */ ResultsPerPage *int64 /* Road. Street address road */ Road *string /* SearchAfter. Put in the previous page's searchAfter result to get the next page. Use this instead of 'first' */ SearchAfter *string /* ShowBle. Include BLE networks Default: "true" */ ShowBle *string /* ShowBt. Include BT networks Default: "true" */ ShowBt *string /* StartTransID. Earliest transid by which to bound (year-level precision only), format 'yyyyMMdd-00000' */ StartTransID *string /* Variance. How tightly to bound queries against the provided latitude/longitude box. Value must be between 0.001 and 0.2. Intended for use with non-exact decimals and geocoded bounds. */ Variance *float64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SearchParams contains all the parameters to send to the API endpoint
for the search operation. Typically these are written to a http.Request.
func NewSearchParams ¶
func NewSearchParams() *SearchParams
NewSearchParams creates a new SearchParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewSearchParamsWithContext ¶
func NewSearchParamsWithContext(ctx context.Context) *SearchParams
NewSearchParamsWithContext creates a new SearchParams object with the ability to set a context for a request.
func NewSearchParamsWithHTTPClient ¶
func NewSearchParamsWithHTTPClient(client *http.Client) *SearchParams
NewSearchParamsWithHTTPClient creates a new SearchParams object with the ability to set a custom HTTPClient for a request.
func NewSearchParamsWithTimeout ¶
func NewSearchParamsWithTimeout(timeout time.Duration) *SearchParams
NewSearchParamsWithTimeout creates a new SearchParams object with the ability to set a timeout on a request.
func (*SearchParams) SetCity ¶
func (o *SearchParams) SetCity(city *string)
SetCity adds the city to the search params
func (*SearchParams) SetClosestLat ¶
func (o *SearchParams) SetClosestLat(closestLat *float64)
SetClosestLat adds the closestLat to the search params
func (*SearchParams) SetClosestLong ¶
func (o *SearchParams) SetClosestLong(closestLong *float64)
SetClosestLong adds the closestLong to the search params
func (*SearchParams) SetContext ¶
func (o *SearchParams) SetContext(ctx context.Context)
SetContext adds the context to the search params
func (*SearchParams) SetCountry ¶
func (o *SearchParams) SetCountry(country *string)
SetCountry adds the country to the search params
func (*SearchParams) SetDefaults ¶
func (o *SearchParams) SetDefaults()
SetDefaults hydrates default values in the search params (not the query body).
All values with no default are reset to their zero value.
func (*SearchParams) SetEndTransID ¶
func (o *SearchParams) SetEndTransID(endTransID *string)
SetEndTransID adds the endTransId to the search params
func (*SearchParams) SetFirsttime ¶
func (o *SearchParams) SetFirsttime(firsttime *string)
SetFirsttime adds the firsttime to the search params
func (*SearchParams) SetHTTPClient ¶
func (o *SearchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the search params
func (*SearchParams) SetHouseNumber ¶
func (o *SearchParams) SetHouseNumber(houseNumber *string)
SetHouseNumber adds the houseNumber to the search params
func (*SearchParams) SetLasttime ¶
func (o *SearchParams) SetLasttime(lasttime *string)
SetLasttime adds the lasttime to the search params
func (*SearchParams) SetLastupdt ¶
func (o *SearchParams) SetLastupdt(lastupdt *string)
SetLastupdt adds the lastupdt to the search params
func (*SearchParams) SetLatrange1 ¶
func (o *SearchParams) SetLatrange1(latrange1 *float64)
SetLatrange1 adds the latrange1 to the search params
func (*SearchParams) SetLatrange2 ¶
func (o *SearchParams) SetLatrange2(latrange2 *float64)
SetLatrange2 adds the latrange2 to the search params
func (*SearchParams) SetLongrange1 ¶
func (o *SearchParams) SetLongrange1(longrange1 *float64)
SetLongrange1 adds the longrange1 to the search params
func (*SearchParams) SetLongrange2 ¶
func (o *SearchParams) SetLongrange2(longrange2 *float64)
SetLongrange2 adds the longrange2 to the search params
func (*SearchParams) SetMinQoS ¶
func (o *SearchParams) SetMinQoS(minQoS *int32)
SetMinQoS adds the minQoS to the search params
func (*SearchParams) SetName ¶
func (o *SearchParams) SetName(name *string)
SetName adds the name to the search params
func (*SearchParams) SetNamelike ¶
func (o *SearchParams) SetNamelike(namelike *string)
SetNamelike adds the namelike to the search params
func (*SearchParams) SetNetid ¶
func (o *SearchParams) SetNetid(netid *string)
SetNetid adds the netid to the search params
func (*SearchParams) SetNotmine ¶
func (o *SearchParams) SetNotmine(notmine *string)
SetNotmine adds the notmine to the search params
func (*SearchParams) SetOnlymine ¶
func (o *SearchParams) SetOnlymine(onlymine *string)
SetOnlymine adds the onlymine to the search params
func (*SearchParams) SetPostalCode ¶
func (o *SearchParams) SetPostalCode(postalCode *string)
SetPostalCode adds the postalCode to the search params
func (*SearchParams) SetRegion ¶
func (o *SearchParams) SetRegion(region *string)
SetRegion adds the region to the search params
func (*SearchParams) SetResultsPerPage ¶
func (o *SearchParams) SetResultsPerPage(resultsPerPage *int64)
SetResultsPerPage adds the resultsPerPage to the search params
func (*SearchParams) SetRoad ¶
func (o *SearchParams) SetRoad(road *string)
SetRoad adds the road to the search params
func (*SearchParams) SetSearchAfter ¶
func (o *SearchParams) SetSearchAfter(searchAfter *string)
SetSearchAfter adds the searchAfter to the search params
func (*SearchParams) SetShowBle ¶
func (o *SearchParams) SetShowBle(showBle *string)
SetShowBle adds the showBle to the search params
func (*SearchParams) SetShowBt ¶
func (o *SearchParams) SetShowBt(showBt *string)
SetShowBt adds the showBt to the search params
func (*SearchParams) SetStartTransID ¶
func (o *SearchParams) SetStartTransID(startTransID *string)
SetStartTransID adds the startTransId to the search params
func (*SearchParams) SetTimeout ¶
func (o *SearchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the search params
func (*SearchParams) SetVariance ¶
func (o *SearchParams) SetVariance(variance *float64)
SetVariance adds the variance to the search params
func (*SearchParams) WithCity ¶
func (o *SearchParams) WithCity(city *string) *SearchParams
WithCity adds the city to the search params
func (*SearchParams) WithClosestLat ¶
func (o *SearchParams) WithClosestLat(closestLat *float64) *SearchParams
WithClosestLat adds the closestLat to the search params
func (*SearchParams) WithClosestLong ¶
func (o *SearchParams) WithClosestLong(closestLong *float64) *SearchParams
WithClosestLong adds the closestLong to the search params
func (*SearchParams) WithContext ¶
func (o *SearchParams) WithContext(ctx context.Context) *SearchParams
WithContext adds the context to the search params
func (*SearchParams) WithCountry ¶
func (o *SearchParams) WithCountry(country *string) *SearchParams
WithCountry adds the country to the search params
func (*SearchParams) WithDefaults ¶
func (o *SearchParams) WithDefaults() *SearchParams
WithDefaults hydrates default values in the search params (not the query body).
All values with no default are reset to their zero value.
func (*SearchParams) WithEndTransID ¶
func (o *SearchParams) WithEndTransID(endTransID *string) *SearchParams
WithEndTransID adds the endTransID to the search params
func (*SearchParams) WithFirsttime ¶
func (o *SearchParams) WithFirsttime(firsttime *string) *SearchParams
WithFirsttime adds the firsttime to the search params
func (*SearchParams) WithHTTPClient ¶
func (o *SearchParams) WithHTTPClient(client *http.Client) *SearchParams
WithHTTPClient adds the HTTPClient to the search params
func (*SearchParams) WithHouseNumber ¶
func (o *SearchParams) WithHouseNumber(houseNumber *string) *SearchParams
WithHouseNumber adds the houseNumber to the search params
func (*SearchParams) WithLasttime ¶
func (o *SearchParams) WithLasttime(lasttime *string) *SearchParams
WithLasttime adds the lasttime to the search params
func (*SearchParams) WithLastupdt ¶
func (o *SearchParams) WithLastupdt(lastupdt *string) *SearchParams
WithLastupdt adds the lastupdt to the search params
func (*SearchParams) WithLatrange1 ¶
func (o *SearchParams) WithLatrange1(latrange1 *float64) *SearchParams
WithLatrange1 adds the latrange1 to the search params
func (*SearchParams) WithLatrange2 ¶
func (o *SearchParams) WithLatrange2(latrange2 *float64) *SearchParams
WithLatrange2 adds the latrange2 to the search params
func (*SearchParams) WithLongrange1 ¶
func (o *SearchParams) WithLongrange1(longrange1 *float64) *SearchParams
WithLongrange1 adds the longrange1 to the search params
func (*SearchParams) WithLongrange2 ¶
func (o *SearchParams) WithLongrange2(longrange2 *float64) *SearchParams
WithLongrange2 adds the longrange2 to the search params
func (*SearchParams) WithMinQoS ¶
func (o *SearchParams) WithMinQoS(minQoS *int32) *SearchParams
WithMinQoS adds the minQoS to the search params
func (*SearchParams) WithName ¶
func (o *SearchParams) WithName(name *string) *SearchParams
WithName adds the name to the search params
func (*SearchParams) WithNamelike ¶
func (o *SearchParams) WithNamelike(namelike *string) *SearchParams
WithNamelike adds the namelike to the search params
func (*SearchParams) WithNetid ¶
func (o *SearchParams) WithNetid(netid *string) *SearchParams
WithNetid adds the netid to the search params
func (*SearchParams) WithNotmine ¶
func (o *SearchParams) WithNotmine(notmine *string) *SearchParams
WithNotmine adds the notmine to the search params
func (*SearchParams) WithOnlymine ¶
func (o *SearchParams) WithOnlymine(onlymine *string) *SearchParams
WithOnlymine adds the onlymine to the search params
func (*SearchParams) WithPostalCode ¶
func (o *SearchParams) WithPostalCode(postalCode *string) *SearchParams
WithPostalCode adds the postalCode to the search params
func (*SearchParams) WithRegion ¶
func (o *SearchParams) WithRegion(region *string) *SearchParams
WithRegion adds the region to the search params
func (*SearchParams) WithResultsPerPage ¶
func (o *SearchParams) WithResultsPerPage(resultsPerPage *int64) *SearchParams
WithResultsPerPage adds the resultsPerPage to the search params
func (*SearchParams) WithRoad ¶
func (o *SearchParams) WithRoad(road *string) *SearchParams
WithRoad adds the road to the search params
func (*SearchParams) WithSearchAfter ¶
func (o *SearchParams) WithSearchAfter(searchAfter *string) *SearchParams
WithSearchAfter adds the searchAfter to the search params
func (*SearchParams) WithShowBle ¶
func (o *SearchParams) WithShowBle(showBle *string) *SearchParams
WithShowBle adds the showBle to the search params
func (*SearchParams) WithShowBt ¶
func (o *SearchParams) WithShowBt(showBt *string) *SearchParams
WithShowBt adds the showBt to the search params
func (*SearchParams) WithStartTransID ¶
func (o *SearchParams) WithStartTransID(startTransID *string) *SearchParams
WithStartTransID adds the startTransID to the search params
func (*SearchParams) WithTimeout ¶
func (o *SearchParams) WithTimeout(timeout time.Duration) *SearchParams
WithTimeout adds the timeout to the search params
func (*SearchParams) WithVariance ¶
func (o *SearchParams) WithVariance(variance *float64) *SearchParams
WithVariance adds the variance to the search params
func (*SearchParams) WriteToRequest ¶
func (o *SearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SearchPaymentRequired ¶
type SearchPaymentRequired struct { }
SearchPaymentRequired describes a response with status code 402, with default header values.
Insufficient balance for commercial query
func NewSearchPaymentRequired ¶
func NewSearchPaymentRequired() *SearchPaymentRequired
NewSearchPaymentRequired creates a SearchPaymentRequired with default headers values
func (*SearchPaymentRequired) Error ¶
func (o *SearchPaymentRequired) Error() string
func (*SearchPaymentRequired) IsClientError ¶
func (o *SearchPaymentRequired) IsClientError() bool
IsClientError returns true when this search payment required response has a 4xx status code
func (*SearchPaymentRequired) IsCode ¶
func (o *SearchPaymentRequired) IsCode(code int) bool
IsCode returns true when this search payment required response a status code equal to that given
func (*SearchPaymentRequired) IsRedirect ¶
func (o *SearchPaymentRequired) IsRedirect() bool
IsRedirect returns true when this search payment required response has a 3xx status code
func (*SearchPaymentRequired) IsServerError ¶
func (o *SearchPaymentRequired) IsServerError() bool
IsServerError returns true when this search payment required response has a 5xx status code
func (*SearchPaymentRequired) IsSuccess ¶
func (o *SearchPaymentRequired) IsSuccess() bool
IsSuccess returns true when this search payment required response has a 2xx status code
func (*SearchPaymentRequired) String ¶
func (o *SearchPaymentRequired) String() string
type SearchReader ¶
type SearchReader struct {
// contains filtered or unexported fields
}
SearchReader is a Reader for the Search structure.
func (*SearchReader) ReadResponse ¶
func (o *SearchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SearchTooManyRequests ¶
type SearchTooManyRequests struct { }
SearchTooManyRequests describes a response with status code 429, with default header values.
Too many queries today.
func NewSearchTooManyRequests ¶
func NewSearchTooManyRequests() *SearchTooManyRequests
NewSearchTooManyRequests creates a SearchTooManyRequests with default headers values
func (*SearchTooManyRequests) Error ¶
func (o *SearchTooManyRequests) Error() string
func (*SearchTooManyRequests) IsClientError ¶
func (o *SearchTooManyRequests) IsClientError() bool
IsClientError returns true when this search too many requests response has a 4xx status code
func (*SearchTooManyRequests) IsCode ¶
func (o *SearchTooManyRequests) IsCode(code int) bool
IsCode returns true when this search too many requests response a status code equal to that given
func (*SearchTooManyRequests) IsRedirect ¶
func (o *SearchTooManyRequests) IsRedirect() bool
IsRedirect returns true when this search too many requests response has a 3xx status code
func (*SearchTooManyRequests) IsServerError ¶
func (o *SearchTooManyRequests) IsServerError() bool
IsServerError returns true when this search too many requests response has a 5xx status code
func (*SearchTooManyRequests) IsSuccess ¶
func (o *SearchTooManyRequests) IsSuccess() bool
IsSuccess returns true when this search too many requests response has a 2xx status code
func (*SearchTooManyRequests) String ¶
func (o *SearchTooManyRequests) String() string
type SearchUnauthorized ¶
type SearchUnauthorized struct { }
SearchUnauthorized describes a response with status code 401, with default header values.
Not Authorized
func NewSearchUnauthorized ¶
func NewSearchUnauthorized() *SearchUnauthorized
NewSearchUnauthorized creates a SearchUnauthorized with default headers values
func (*SearchUnauthorized) Error ¶
func (o *SearchUnauthorized) Error() string
func (*SearchUnauthorized) IsClientError ¶
func (o *SearchUnauthorized) IsClientError() bool
IsClientError returns true when this search unauthorized response has a 4xx status code
func (*SearchUnauthorized) IsCode ¶
func (o *SearchUnauthorized) IsCode(code int) bool
IsCode returns true when this search unauthorized response a status code equal to that given
func (*SearchUnauthorized) IsRedirect ¶
func (o *SearchUnauthorized) IsRedirect() bool
IsRedirect returns true when this search unauthorized response has a 3xx status code
func (*SearchUnauthorized) IsServerError ¶
func (o *SearchUnauthorized) IsServerError() bool
IsServerError returns true when this search unauthorized response has a 5xx status code
func (*SearchUnauthorized) IsSuccess ¶
func (o *SearchUnauthorized) IsSuccess() bool
IsSuccess returns true when this search unauthorized response has a 2xx status code
func (*SearchUnauthorized) String ¶
func (o *SearchUnauthorized) String() string