statistics_and_information

package
v0.0.0-...-bbc5c3a Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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 statistics and information API

func (*Client) Countries

func (a *Client) Countries(params *CountriesParams, opts ...ClientOption) (*CountriesOK, error)

Countries gets statistics organized by country

Fetches all countries and basic stats

func (*Client) CountryRegion

func (a *Client) CountryRegion(params *CountryRegionParams, opts ...ClientOption) (*CountryRegionOK, error)

CountryRegion gets statistics for a specified country organized by region postal code and encryption

func (*Client) GeneralStats

func (a *Client) GeneralStats(params *GeneralStatsParams, opts ...ClientOption) error

GeneralStats gets a named map of general upload statistics

Information condensed from site uploads about most popular OUIs, Manufacturers, and

func (*Client) GroupStats

func (a *Client) GroupStats(params *GroupStatsParams, opts ...ClientOption) (*GroupStatsOK, error)

GroupStats gets group standings

Fetches a list of all teams. Authenticated users receive additional group info for the group they administer.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) SiteStats

func (a *Client) SiteStats(params *SiteStatsParams, opts ...ClientOption) (*SiteStatsOK, error)

SiteStats gets a named map of site level statistics

A big hash of short-named statistics used in providing site-wide information.

func (*Client) Stats

func (a *Client) Stats(params *StatsParams, opts ...ClientOption) error

Stats gets user standings

func (*Client) UserStatistics

func (a *Client) UserStatistics(params *UserStatisticsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserStatisticsOK, error)

UserStatistics gets user statistics

Get statistics and badge image for the authenticated user

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	Countries(params *CountriesParams, opts ...ClientOption) (*CountriesOK, error)

	CountryRegion(params *CountryRegionParams, opts ...ClientOption) (*CountryRegionOK, error)

	GeneralStats(params *GeneralStatsParams, opts ...ClientOption) error

	GroupStats(params *GroupStatsParams, opts ...ClientOption) (*GroupStatsOK, error)

	SiteStats(params *SiteStatsParams, opts ...ClientOption) (*SiteStatsOK, error)

	Stats(params *StatsParams, opts ...ClientOption) error

	UserStatistics(params *UserStatisticsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UserStatisticsOK, 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 statistics and information API client.

type CountriesInternalServerError

type CountriesInternalServerError struct {
}

CountriesInternalServerError describes a response with status code 500, with default header values.

Unable to complete request

func NewCountriesInternalServerError

func NewCountriesInternalServerError() *CountriesInternalServerError

NewCountriesInternalServerError creates a CountriesInternalServerError with default headers values

func (*CountriesInternalServerError) Error

func (*CountriesInternalServerError) IsClientError

func (o *CountriesInternalServerError) IsClientError() bool

IsClientError returns true when this countries internal server error response has a 4xx status code

func (*CountriesInternalServerError) IsCode

func (o *CountriesInternalServerError) IsCode(code int) bool

IsCode returns true when this countries internal server error response a status code equal to that given

func (*CountriesInternalServerError) IsRedirect

func (o *CountriesInternalServerError) IsRedirect() bool

IsRedirect returns true when this countries internal server error response has a 3xx status code

func (*CountriesInternalServerError) IsServerError

func (o *CountriesInternalServerError) IsServerError() bool

IsServerError returns true when this countries internal server error response has a 5xx status code

func (*CountriesInternalServerError) IsSuccess

func (o *CountriesInternalServerError) IsSuccess() bool

IsSuccess returns true when this countries internal server error response has a 2xx status code

func (*CountriesInternalServerError) String

type CountriesOK

type CountriesOK struct {
	Payload *models.CountriesResponse
}

CountriesOK describes a response with status code 200, with default header values.

Request succeeded

func NewCountriesOK

func NewCountriesOK() *CountriesOK

NewCountriesOK creates a CountriesOK with default headers values

func (*CountriesOK) Error

func (o *CountriesOK) Error() string

func (*CountriesOK) GetPayload

func (o *CountriesOK) GetPayload() *models.CountriesResponse

func (*CountriesOK) IsClientError

func (o *CountriesOK) IsClientError() bool

IsClientError returns true when this countries o k response has a 4xx status code

func (*CountriesOK) IsCode

func (o *CountriesOK) IsCode(code int) bool

IsCode returns true when this countries o k response a status code equal to that given

func (*CountriesOK) IsRedirect

func (o *CountriesOK) IsRedirect() bool

IsRedirect returns true when this countries o k response has a 3xx status code

func (*CountriesOK) IsServerError

func (o *CountriesOK) IsServerError() bool

IsServerError returns true when this countries o k response has a 5xx status code

func (*CountriesOK) IsSuccess

func (o *CountriesOK) IsSuccess() bool

IsSuccess returns true when this countries o k response has a 2xx status code

func (*CountriesOK) String

func (o *CountriesOK) String() string

type CountriesParams

type CountriesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CountriesParams contains all the parameters to send to the API endpoint

for the countries operation.

Typically these are written to a http.Request.

func NewCountriesParams

func NewCountriesParams() *CountriesParams

NewCountriesParams creates a new CountriesParams 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 NewCountriesParamsWithContext

func NewCountriesParamsWithContext(ctx context.Context) *CountriesParams

NewCountriesParamsWithContext creates a new CountriesParams object with the ability to set a context for a request.

func NewCountriesParamsWithHTTPClient

func NewCountriesParamsWithHTTPClient(client *http.Client) *CountriesParams

NewCountriesParamsWithHTTPClient creates a new CountriesParams object with the ability to set a custom HTTPClient for a request.

func NewCountriesParamsWithTimeout

func NewCountriesParamsWithTimeout(timeout time.Duration) *CountriesParams

NewCountriesParamsWithTimeout creates a new CountriesParams object with the ability to set a timeout on a request.

func (*CountriesParams) SetContext

func (o *CountriesParams) SetContext(ctx context.Context)

SetContext adds the context to the countries params

func (*CountriesParams) SetDefaults

func (o *CountriesParams) SetDefaults()

SetDefaults hydrates default values in the countries params (not the query body).

All values with no default are reset to their zero value.

func (*CountriesParams) SetHTTPClient

func (o *CountriesParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the countries params

func (*CountriesParams) SetTimeout

func (o *CountriesParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the countries params

func (*CountriesParams) WithContext

func (o *CountriesParams) WithContext(ctx context.Context) *CountriesParams

WithContext adds the context to the countries params

func (*CountriesParams) WithDefaults

func (o *CountriesParams) WithDefaults() *CountriesParams

WithDefaults hydrates default values in the countries params (not the query body).

All values with no default are reset to their zero value.

func (*CountriesParams) WithHTTPClient

func (o *CountriesParams) WithHTTPClient(client *http.Client) *CountriesParams

WithHTTPClient adds the HTTPClient to the countries params

func (*CountriesParams) WithTimeout

func (o *CountriesParams) WithTimeout(timeout time.Duration) *CountriesParams

WithTimeout adds the timeout to the countries params

func (*CountriesParams) WriteToRequest

func (o *CountriesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CountriesReader

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

CountriesReader is a Reader for the Countries structure.

func (*CountriesReader) ReadResponse

func (o *CountriesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type CountryRegionInternalServerError

type CountryRegionInternalServerError struct {
}

CountryRegionInternalServerError describes a response with status code 500, with default header values.

Unable to complete request

func NewCountryRegionInternalServerError

func NewCountryRegionInternalServerError() *CountryRegionInternalServerError

NewCountryRegionInternalServerError creates a CountryRegionInternalServerError with default headers values

func (*CountryRegionInternalServerError) Error

func (*CountryRegionInternalServerError) IsClientError

func (o *CountryRegionInternalServerError) IsClientError() bool

IsClientError returns true when this country region internal server error response has a 4xx status code

func (*CountryRegionInternalServerError) IsCode

func (o *CountryRegionInternalServerError) IsCode(code int) bool

IsCode returns true when this country region internal server error response a status code equal to that given

func (*CountryRegionInternalServerError) IsRedirect

func (o *CountryRegionInternalServerError) IsRedirect() bool

IsRedirect returns true when this country region internal server error response has a 3xx status code

func (*CountryRegionInternalServerError) IsServerError

func (o *CountryRegionInternalServerError) IsServerError() bool

IsServerError returns true when this country region internal server error response has a 5xx status code

func (*CountryRegionInternalServerError) IsSuccess

func (o *CountryRegionInternalServerError) IsSuccess() bool

IsSuccess returns true when this country region internal server error response has a 2xx status code

func (*CountryRegionInternalServerError) String

type CountryRegionOK

type CountryRegionOK struct {
	Payload *models.RegionResponse
}

CountryRegionOK describes a response with status code 200, with default header values.

Request succeeded

func NewCountryRegionOK

func NewCountryRegionOK() *CountryRegionOK

NewCountryRegionOK creates a CountryRegionOK with default headers values

func (*CountryRegionOK) Error

func (o *CountryRegionOK) Error() string

func (*CountryRegionOK) GetPayload

func (o *CountryRegionOK) GetPayload() *models.RegionResponse

func (*CountryRegionOK) IsClientError

func (o *CountryRegionOK) IsClientError() bool

IsClientError returns true when this country region o k response has a 4xx status code

func (*CountryRegionOK) IsCode

func (o *CountryRegionOK) IsCode(code int) bool

IsCode returns true when this country region o k response a status code equal to that given

func (*CountryRegionOK) IsRedirect

func (o *CountryRegionOK) IsRedirect() bool

IsRedirect returns true when this country region o k response has a 3xx status code

func (*CountryRegionOK) IsServerError

func (o *CountryRegionOK) IsServerError() bool

IsServerError returns true when this country region o k response has a 5xx status code

func (*CountryRegionOK) IsSuccess

func (o *CountryRegionOK) IsSuccess() bool

IsSuccess returns true when this country region o k response has a 2xx status code

func (*CountryRegionOK) String

func (o *CountryRegionOK) String() string

type CountryRegionParams

type CountryRegionParams struct {

	/* Country.

	   the two-letter code of the country for which you'd like a regional breakdown. Defaults to 'US'

	   Default: "US"
	*/
	Country *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CountryRegionParams contains all the parameters to send to the API endpoint

for the country region operation.

Typically these are written to a http.Request.

func NewCountryRegionParams

func NewCountryRegionParams() *CountryRegionParams

NewCountryRegionParams creates a new CountryRegionParams 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 NewCountryRegionParamsWithContext

func NewCountryRegionParamsWithContext(ctx context.Context) *CountryRegionParams

NewCountryRegionParamsWithContext creates a new CountryRegionParams object with the ability to set a context for a request.

func NewCountryRegionParamsWithHTTPClient

func NewCountryRegionParamsWithHTTPClient(client *http.Client) *CountryRegionParams

NewCountryRegionParamsWithHTTPClient creates a new CountryRegionParams object with the ability to set a custom HTTPClient for a request.

func NewCountryRegionParamsWithTimeout

func NewCountryRegionParamsWithTimeout(timeout time.Duration) *CountryRegionParams

NewCountryRegionParamsWithTimeout creates a new CountryRegionParams object with the ability to set a timeout on a request.

func (*CountryRegionParams) SetContext

func (o *CountryRegionParams) SetContext(ctx context.Context)

SetContext adds the context to the country region params

func (*CountryRegionParams) SetCountry

func (o *CountryRegionParams) SetCountry(country *string)

SetCountry adds the country to the country region params

func (*CountryRegionParams) SetDefaults

func (o *CountryRegionParams) SetDefaults()

SetDefaults hydrates default values in the country region params (not the query body).

All values with no default are reset to their zero value.

func (*CountryRegionParams) SetHTTPClient

func (o *CountryRegionParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the country region params

func (*CountryRegionParams) SetTimeout

func (o *CountryRegionParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the country region params

func (*CountryRegionParams) WithContext

WithContext adds the context to the country region params

func (*CountryRegionParams) WithCountry

func (o *CountryRegionParams) WithCountry(country *string) *CountryRegionParams

WithCountry adds the country to the country region params

func (*CountryRegionParams) WithDefaults

func (o *CountryRegionParams) WithDefaults() *CountryRegionParams

WithDefaults hydrates default values in the country region params (not the query body).

All values with no default are reset to their zero value.

func (*CountryRegionParams) WithHTTPClient

func (o *CountryRegionParams) WithHTTPClient(client *http.Client) *CountryRegionParams

WithHTTPClient adds the HTTPClient to the country region params

func (*CountryRegionParams) WithTimeout

func (o *CountryRegionParams) WithTimeout(timeout time.Duration) *CountryRegionParams

WithTimeout adds the timeout to the country region params

func (*CountryRegionParams) WriteToRequest

func (o *CountryRegionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CountryRegionReader

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

CountryRegionReader is a Reader for the CountryRegion structure.

func (*CountryRegionReader) ReadResponse

func (o *CountryRegionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GeneralStatsDefault

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

GeneralStatsDefault describes a response with status code -1, with default header values.

successful operation

func NewGeneralStatsDefault

func NewGeneralStatsDefault(code int) *GeneralStatsDefault

NewGeneralStatsDefault creates a GeneralStatsDefault with default headers values

func (*GeneralStatsDefault) Code

func (o *GeneralStatsDefault) Code() int

Code gets the status code for the general stats default response

func (*GeneralStatsDefault) Error

func (o *GeneralStatsDefault) Error() string

func (*GeneralStatsDefault) IsClientError

func (o *GeneralStatsDefault) IsClientError() bool

IsClientError returns true when this general stats default response has a 4xx status code

func (*GeneralStatsDefault) IsCode

func (o *GeneralStatsDefault) IsCode(code int) bool

IsCode returns true when this general stats default response a status code equal to that given

func (*GeneralStatsDefault) IsRedirect

func (o *GeneralStatsDefault) IsRedirect() bool

IsRedirect returns true when this general stats default response has a 3xx status code

func (*GeneralStatsDefault) IsServerError

func (o *GeneralStatsDefault) IsServerError() bool

IsServerError returns true when this general stats default response has a 5xx status code

func (*GeneralStatsDefault) IsSuccess

func (o *GeneralStatsDefault) IsSuccess() bool

IsSuccess returns true when this general stats default response has a 2xx status code

func (*GeneralStatsDefault) String

func (o *GeneralStatsDefault) String() string

type GeneralStatsParams

type GeneralStatsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GeneralStatsParams contains all the parameters to send to the API endpoint

for the general stats operation.

Typically these are written to a http.Request.

func NewGeneralStatsParams

func NewGeneralStatsParams() *GeneralStatsParams

NewGeneralStatsParams creates a new GeneralStatsParams 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 NewGeneralStatsParamsWithContext

func NewGeneralStatsParamsWithContext(ctx context.Context) *GeneralStatsParams

NewGeneralStatsParamsWithContext creates a new GeneralStatsParams object with the ability to set a context for a request.

func NewGeneralStatsParamsWithHTTPClient

func NewGeneralStatsParamsWithHTTPClient(client *http.Client) *GeneralStatsParams

NewGeneralStatsParamsWithHTTPClient creates a new GeneralStatsParams object with the ability to set a custom HTTPClient for a request.

func NewGeneralStatsParamsWithTimeout

func NewGeneralStatsParamsWithTimeout(timeout time.Duration) *GeneralStatsParams

NewGeneralStatsParamsWithTimeout creates a new GeneralStatsParams object with the ability to set a timeout on a request.

func (*GeneralStatsParams) SetContext

func (o *GeneralStatsParams) SetContext(ctx context.Context)

SetContext adds the context to the general stats params

func (*GeneralStatsParams) SetDefaults

func (o *GeneralStatsParams) SetDefaults()

SetDefaults hydrates default values in the general stats params (not the query body).

All values with no default are reset to their zero value.

func (*GeneralStatsParams) SetHTTPClient

func (o *GeneralStatsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the general stats params

func (*GeneralStatsParams) SetTimeout

func (o *GeneralStatsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the general stats params

func (*GeneralStatsParams) WithContext

WithContext adds the context to the general stats params

func (*GeneralStatsParams) WithDefaults

func (o *GeneralStatsParams) WithDefaults() *GeneralStatsParams

WithDefaults hydrates default values in the general stats params (not the query body).

All values with no default are reset to their zero value.

func (*GeneralStatsParams) WithHTTPClient

func (o *GeneralStatsParams) WithHTTPClient(client *http.Client) *GeneralStatsParams

WithHTTPClient adds the HTTPClient to the general stats params

func (*GeneralStatsParams) WithTimeout

func (o *GeneralStatsParams) WithTimeout(timeout time.Duration) *GeneralStatsParams

WithTimeout adds the timeout to the general stats params

func (*GeneralStatsParams) WriteToRequest

func (o *GeneralStatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GeneralStatsReader

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

GeneralStatsReader is a Reader for the GeneralStats structure.

func (*GeneralStatsReader) ReadResponse

func (o *GeneralStatsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GroupStatsInternalServerError

type GroupStatsInternalServerError struct {
}

GroupStatsInternalServerError describes a response with status code 500, with default header values.

Error fetching groups list

func NewGroupStatsInternalServerError

func NewGroupStatsInternalServerError() *GroupStatsInternalServerError

NewGroupStatsInternalServerError creates a GroupStatsInternalServerError with default headers values

func (*GroupStatsInternalServerError) Error

func (*GroupStatsInternalServerError) IsClientError

func (o *GroupStatsInternalServerError) IsClientError() bool

IsClientError returns true when this group stats internal server error response has a 4xx status code

func (*GroupStatsInternalServerError) IsCode

func (o *GroupStatsInternalServerError) IsCode(code int) bool

IsCode returns true when this group stats internal server error response a status code equal to that given

func (*GroupStatsInternalServerError) IsRedirect

func (o *GroupStatsInternalServerError) IsRedirect() bool

IsRedirect returns true when this group stats internal server error response has a 3xx status code

func (*GroupStatsInternalServerError) IsServerError

func (o *GroupStatsInternalServerError) IsServerError() bool

IsServerError returns true when this group stats internal server error response has a 5xx status code

func (*GroupStatsInternalServerError) IsSuccess

func (o *GroupStatsInternalServerError) IsSuccess() bool

IsSuccess returns true when this group stats internal server error response has a 2xx status code

func (*GroupStatsInternalServerError) String

type GroupStatsOK

type GroupStatsOK struct {
	Payload *models.GroupStatResponse
}

GroupStatsOK describes a response with status code 200, with default header values.

Request succeeded

func NewGroupStatsOK

func NewGroupStatsOK() *GroupStatsOK

NewGroupStatsOK creates a GroupStatsOK with default headers values

func (*GroupStatsOK) Error

func (o *GroupStatsOK) Error() string

func (*GroupStatsOK) GetPayload

func (o *GroupStatsOK) GetPayload() *models.GroupStatResponse

func (*GroupStatsOK) IsClientError

func (o *GroupStatsOK) IsClientError() bool

IsClientError returns true when this group stats o k response has a 4xx status code

func (*GroupStatsOK) IsCode

func (o *GroupStatsOK) IsCode(code int) bool

IsCode returns true when this group stats o k response a status code equal to that given

func (*GroupStatsOK) IsRedirect

func (o *GroupStatsOK) IsRedirect() bool

IsRedirect returns true when this group stats o k response has a 3xx status code

func (*GroupStatsOK) IsServerError

func (o *GroupStatsOK) IsServerError() bool

IsServerError returns true when this group stats o k response has a 5xx status code

func (*GroupStatsOK) IsSuccess

func (o *GroupStatsOK) IsSuccess() bool

IsSuccess returns true when this group stats o k response has a 2xx status code

func (*GroupStatsOK) String

func (o *GroupStatsOK) String() string

type GroupStatsParams

type GroupStatsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GroupStatsParams contains all the parameters to send to the API endpoint

for the group stats operation.

Typically these are written to a http.Request.

func NewGroupStatsParams

func NewGroupStatsParams() *GroupStatsParams

NewGroupStatsParams creates a new GroupStatsParams 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 NewGroupStatsParamsWithContext

func NewGroupStatsParamsWithContext(ctx context.Context) *GroupStatsParams

NewGroupStatsParamsWithContext creates a new GroupStatsParams object with the ability to set a context for a request.

func NewGroupStatsParamsWithHTTPClient

func NewGroupStatsParamsWithHTTPClient(client *http.Client) *GroupStatsParams

NewGroupStatsParamsWithHTTPClient creates a new GroupStatsParams object with the ability to set a custom HTTPClient for a request.

func NewGroupStatsParamsWithTimeout

func NewGroupStatsParamsWithTimeout(timeout time.Duration) *GroupStatsParams

NewGroupStatsParamsWithTimeout creates a new GroupStatsParams object with the ability to set a timeout on a request.

func (*GroupStatsParams) SetContext

func (o *GroupStatsParams) SetContext(ctx context.Context)

SetContext adds the context to the group stats params

func (*GroupStatsParams) SetDefaults

func (o *GroupStatsParams) SetDefaults()

SetDefaults hydrates default values in the group stats params (not the query body).

All values with no default are reset to their zero value.

func (*GroupStatsParams) SetHTTPClient

func (o *GroupStatsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the group stats params

func (*GroupStatsParams) SetTimeout

func (o *GroupStatsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the group stats params

func (*GroupStatsParams) WithContext

func (o *GroupStatsParams) WithContext(ctx context.Context) *GroupStatsParams

WithContext adds the context to the group stats params

func (*GroupStatsParams) WithDefaults

func (o *GroupStatsParams) WithDefaults() *GroupStatsParams

WithDefaults hydrates default values in the group stats params (not the query body).

All values with no default are reset to their zero value.

func (*GroupStatsParams) WithHTTPClient

func (o *GroupStatsParams) WithHTTPClient(client *http.Client) *GroupStatsParams

WithHTTPClient adds the HTTPClient to the group stats params

func (*GroupStatsParams) WithTimeout

func (o *GroupStatsParams) WithTimeout(timeout time.Duration) *GroupStatsParams

WithTimeout adds the timeout to the group stats params

func (*GroupStatsParams) WriteToRequest

func (o *GroupStatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GroupStatsReader

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

GroupStatsReader is a Reader for the GroupStats structure.

func (*GroupStatsReader) ReadResponse

func (o *GroupStatsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SiteStatsOK

type SiteStatsOK struct {
	Payload map[string]interface{}
}

SiteStatsOK describes a response with status code 200, with default header values.

successful operation

func NewSiteStatsOK

func NewSiteStatsOK() *SiteStatsOK

NewSiteStatsOK creates a SiteStatsOK with default headers values

func (*SiteStatsOK) Error

func (o *SiteStatsOK) Error() string

func (*SiteStatsOK) GetPayload

func (o *SiteStatsOK) GetPayload() map[string]interface{}

func (*SiteStatsOK) IsClientError

func (o *SiteStatsOK) IsClientError() bool

IsClientError returns true when this site stats o k response has a 4xx status code

func (*SiteStatsOK) IsCode

func (o *SiteStatsOK) IsCode(code int) bool

IsCode returns true when this site stats o k response a status code equal to that given

func (*SiteStatsOK) IsRedirect

func (o *SiteStatsOK) IsRedirect() bool

IsRedirect returns true when this site stats o k response has a 3xx status code

func (*SiteStatsOK) IsServerError

func (o *SiteStatsOK) IsServerError() bool

IsServerError returns true when this site stats o k response has a 5xx status code

func (*SiteStatsOK) IsSuccess

func (o *SiteStatsOK) IsSuccess() bool

IsSuccess returns true when this site stats o k response has a 2xx status code

func (*SiteStatsOK) String

func (o *SiteStatsOK) String() string

type SiteStatsParams

type SiteStatsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SiteStatsParams contains all the parameters to send to the API endpoint

for the site stats operation.

Typically these are written to a http.Request.

func NewSiteStatsParams

func NewSiteStatsParams() *SiteStatsParams

NewSiteStatsParams creates a new SiteStatsParams 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 NewSiteStatsParamsWithContext

func NewSiteStatsParamsWithContext(ctx context.Context) *SiteStatsParams

NewSiteStatsParamsWithContext creates a new SiteStatsParams object with the ability to set a context for a request.

func NewSiteStatsParamsWithHTTPClient

func NewSiteStatsParamsWithHTTPClient(client *http.Client) *SiteStatsParams

NewSiteStatsParamsWithHTTPClient creates a new SiteStatsParams object with the ability to set a custom HTTPClient for a request.

func NewSiteStatsParamsWithTimeout

func NewSiteStatsParamsWithTimeout(timeout time.Duration) *SiteStatsParams

NewSiteStatsParamsWithTimeout creates a new SiteStatsParams object with the ability to set a timeout on a request.

func (*SiteStatsParams) SetContext

func (o *SiteStatsParams) SetContext(ctx context.Context)

SetContext adds the context to the site stats params

func (*SiteStatsParams) SetDefaults

func (o *SiteStatsParams) SetDefaults()

SetDefaults hydrates default values in the site stats params (not the query body).

All values with no default are reset to their zero value.

func (*SiteStatsParams) SetHTTPClient

func (o *SiteStatsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the site stats params

func (*SiteStatsParams) SetTimeout

func (o *SiteStatsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the site stats params

func (*SiteStatsParams) WithContext

func (o *SiteStatsParams) WithContext(ctx context.Context) *SiteStatsParams

WithContext adds the context to the site stats params

func (*SiteStatsParams) WithDefaults

func (o *SiteStatsParams) WithDefaults() *SiteStatsParams

WithDefaults hydrates default values in the site stats params (not the query body).

All values with no default are reset to their zero value.

func (*SiteStatsParams) WithHTTPClient

func (o *SiteStatsParams) WithHTTPClient(client *http.Client) *SiteStatsParams

WithHTTPClient adds the HTTPClient to the site stats params

func (*SiteStatsParams) WithTimeout

func (o *SiteStatsParams) WithTimeout(timeout time.Duration) *SiteStatsParams

WithTimeout adds the timeout to the site stats params

func (*SiteStatsParams) WriteToRequest

func (o *SiteStatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SiteStatsReader

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

SiteStatsReader is a Reader for the SiteStats structure.

func (*SiteStatsReader) ReadResponse

func (o *SiteStatsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type StatsDefault

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

StatsDefault describes a response with status code -1, with default header values.

successful operation

func NewStatsDefault

func NewStatsDefault(code int) *StatsDefault

NewStatsDefault creates a StatsDefault with default headers values

func (*StatsDefault) Code

func (o *StatsDefault) Code() int

Code gets the status code for the stats default response

func (*StatsDefault) Error

func (o *StatsDefault) Error() string

func (*StatsDefault) IsClientError

func (o *StatsDefault) IsClientError() bool

IsClientError returns true when this stats default response has a 4xx status code

func (*StatsDefault) IsCode

func (o *StatsDefault) IsCode(code int) bool

IsCode returns true when this stats default response a status code equal to that given

func (*StatsDefault) IsRedirect

func (o *StatsDefault) IsRedirect() bool

IsRedirect returns true when this stats default response has a 3xx status code

func (*StatsDefault) IsServerError

func (o *StatsDefault) IsServerError() bool

IsServerError returns true when this stats default response has a 5xx status code

func (*StatsDefault) IsSuccess

func (o *StatsDefault) IsSuccess() bool

IsSuccess returns true when this stats default response has a 2xx status code

func (*StatsDefault) String

func (o *StatsDefault) String() string

type StatsParams

type StatsParams struct {

	/* Pageend.

	   The last record to request according to the 'sort' parameter

	   Format: int64
	*/
	Pageend *int64

	/* Pagestart.

	   The first record to request according to the 'sort' parameter

	   Format: int64
	*/
	Pagestart *int64

	/* Sort.

	   The criteria by which to sort the results. Values are ['discovered', 'total', 'monthcount', 'prevmonthcount', 'gendisc', 'gentotal', 'firsttransid', 'lasttransid']

	   Default: "discovered"
	*/
	Sort *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

StatsParams contains all the parameters to send to the API endpoint

for the stats operation.

Typically these are written to a http.Request.

func NewStatsParams

func NewStatsParams() *StatsParams

NewStatsParams creates a new StatsParams 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 NewStatsParamsWithContext

func NewStatsParamsWithContext(ctx context.Context) *StatsParams

NewStatsParamsWithContext creates a new StatsParams object with the ability to set a context for a request.

func NewStatsParamsWithHTTPClient

func NewStatsParamsWithHTTPClient(client *http.Client) *StatsParams

NewStatsParamsWithHTTPClient creates a new StatsParams object with the ability to set a custom HTTPClient for a request.

func NewStatsParamsWithTimeout

func NewStatsParamsWithTimeout(timeout time.Duration) *StatsParams

NewStatsParamsWithTimeout creates a new StatsParams object with the ability to set a timeout on a request.

func (*StatsParams) SetContext

func (o *StatsParams) SetContext(ctx context.Context)

SetContext adds the context to the stats params

func (*StatsParams) SetDefaults

func (o *StatsParams) SetDefaults()

SetDefaults hydrates default values in the stats params (not the query body).

All values with no default are reset to their zero value.

func (*StatsParams) SetHTTPClient

func (o *StatsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the stats params

func (*StatsParams) SetPageend

func (o *StatsParams) SetPageend(pageend *int64)

SetPageend adds the pageend to the stats params

func (*StatsParams) SetPagestart

func (o *StatsParams) SetPagestart(pagestart *int64)

SetPagestart adds the pagestart to the stats params

func (*StatsParams) SetSort

func (o *StatsParams) SetSort(sort *string)

SetSort adds the sort to the stats params

func (*StatsParams) SetTimeout

func (o *StatsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the stats params

func (*StatsParams) WithContext

func (o *StatsParams) WithContext(ctx context.Context) *StatsParams

WithContext adds the context to the stats params

func (*StatsParams) WithDefaults

func (o *StatsParams) WithDefaults() *StatsParams

WithDefaults hydrates default values in the stats params (not the query body).

All values with no default are reset to their zero value.

func (*StatsParams) WithHTTPClient

func (o *StatsParams) WithHTTPClient(client *http.Client) *StatsParams

WithHTTPClient adds the HTTPClient to the stats params

func (*StatsParams) WithPageend

func (o *StatsParams) WithPageend(pageend *int64) *StatsParams

WithPageend adds the pageend to the stats params

func (*StatsParams) WithPagestart

func (o *StatsParams) WithPagestart(pagestart *int64) *StatsParams

WithPagestart adds the pagestart to the stats params

func (*StatsParams) WithSort

func (o *StatsParams) WithSort(sort *string) *StatsParams

WithSort adds the sort to the stats params

func (*StatsParams) WithTimeout

func (o *StatsParams) WithTimeout(timeout time.Duration) *StatsParams

WithTimeout adds the timeout to the stats params

func (*StatsParams) WriteToRequest

func (o *StatsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type StatsReader

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

StatsReader is a Reader for the Stats structure.

func (*StatsReader) ReadResponse

func (o *StatsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UserStatisticsNotFound

type UserStatisticsNotFound struct {
}

UserStatisticsNotFound describes a response with status code 404, with default header values.

No matching user found

func NewUserStatisticsNotFound

func NewUserStatisticsNotFound() *UserStatisticsNotFound

NewUserStatisticsNotFound creates a UserStatisticsNotFound with default headers values

func (*UserStatisticsNotFound) Error

func (o *UserStatisticsNotFound) Error() string

func (*UserStatisticsNotFound) IsClientError

func (o *UserStatisticsNotFound) IsClientError() bool

IsClientError returns true when this user statistics not found response has a 4xx status code

func (*UserStatisticsNotFound) IsCode

func (o *UserStatisticsNotFound) IsCode(code int) bool

IsCode returns true when this user statistics not found response a status code equal to that given

func (*UserStatisticsNotFound) IsRedirect

func (o *UserStatisticsNotFound) IsRedirect() bool

IsRedirect returns true when this user statistics not found response has a 3xx status code

func (*UserStatisticsNotFound) IsServerError

func (o *UserStatisticsNotFound) IsServerError() bool

IsServerError returns true when this user statistics not found response has a 5xx status code

func (*UserStatisticsNotFound) IsSuccess

func (o *UserStatisticsNotFound) IsSuccess() bool

IsSuccess returns true when this user statistics not found response has a 2xx status code

func (*UserStatisticsNotFound) String

func (o *UserStatisticsNotFound) String() string

type UserStatisticsOK

type UserStatisticsOK struct {
}

UserStatisticsOK describes a response with status code 200, with default header values.

Corresponding UserStatsResponse for user

func NewUserStatisticsOK

func NewUserStatisticsOK() *UserStatisticsOK

NewUserStatisticsOK creates a UserStatisticsOK with default headers values

func (*UserStatisticsOK) Error

func (o *UserStatisticsOK) Error() string

func (*UserStatisticsOK) IsClientError

func (o *UserStatisticsOK) IsClientError() bool

IsClientError returns true when this user statistics o k response has a 4xx status code

func (*UserStatisticsOK) IsCode

func (o *UserStatisticsOK) IsCode(code int) bool

IsCode returns true when this user statistics o k response a status code equal to that given

func (*UserStatisticsOK) IsRedirect

func (o *UserStatisticsOK) IsRedirect() bool

IsRedirect returns true when this user statistics o k response has a 3xx status code

func (*UserStatisticsOK) IsServerError

func (o *UserStatisticsOK) IsServerError() bool

IsServerError returns true when this user statistics o k response has a 5xx status code

func (*UserStatisticsOK) IsSuccess

func (o *UserStatisticsOK) IsSuccess() bool

IsSuccess returns true when this user statistics o k response has a 2xx status code

func (*UserStatisticsOK) String

func (o *UserStatisticsOK) String() string

type UserStatisticsParams

type UserStatisticsParams struct {

	/* User.

	   the name of the user for whom to get stats
	*/
	User *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UserStatisticsParams contains all the parameters to send to the API endpoint

for the user statistics operation.

Typically these are written to a http.Request.

func NewUserStatisticsParams

func NewUserStatisticsParams() *UserStatisticsParams

NewUserStatisticsParams creates a new UserStatisticsParams 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 NewUserStatisticsParamsWithContext

func NewUserStatisticsParamsWithContext(ctx context.Context) *UserStatisticsParams

NewUserStatisticsParamsWithContext creates a new UserStatisticsParams object with the ability to set a context for a request.

func NewUserStatisticsParamsWithHTTPClient

func NewUserStatisticsParamsWithHTTPClient(client *http.Client) *UserStatisticsParams

NewUserStatisticsParamsWithHTTPClient creates a new UserStatisticsParams object with the ability to set a custom HTTPClient for a request.

func NewUserStatisticsParamsWithTimeout

func NewUserStatisticsParamsWithTimeout(timeout time.Duration) *UserStatisticsParams

NewUserStatisticsParamsWithTimeout creates a new UserStatisticsParams object with the ability to set a timeout on a request.

func (*UserStatisticsParams) SetContext

func (o *UserStatisticsParams) SetContext(ctx context.Context)

SetContext adds the context to the user statistics params

func (*UserStatisticsParams) SetDefaults

func (o *UserStatisticsParams) SetDefaults()

SetDefaults hydrates default values in the user statistics params (not the query body).

All values with no default are reset to their zero value.

func (*UserStatisticsParams) SetHTTPClient

func (o *UserStatisticsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the user statistics params

func (*UserStatisticsParams) SetTimeout

func (o *UserStatisticsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the user statistics params

func (*UserStatisticsParams) SetUser

func (o *UserStatisticsParams) SetUser(user *string)

SetUser adds the user to the user statistics params

func (*UserStatisticsParams) WithContext

WithContext adds the context to the user statistics params

func (*UserStatisticsParams) WithDefaults

func (o *UserStatisticsParams) WithDefaults() *UserStatisticsParams

WithDefaults hydrates default values in the user statistics params (not the query body).

All values with no default are reset to their zero value.

func (*UserStatisticsParams) WithHTTPClient

func (o *UserStatisticsParams) WithHTTPClient(client *http.Client) *UserStatisticsParams

WithHTTPClient adds the HTTPClient to the user statistics params

func (*UserStatisticsParams) WithTimeout

func (o *UserStatisticsParams) WithTimeout(timeout time.Duration) *UserStatisticsParams

WithTimeout adds the timeout to the user statistics params

func (*UserStatisticsParams) WithUser

func (o *UserStatisticsParams) WithUser(user *string) *UserStatisticsParams

WithUser adds the user to the user statistics params

func (*UserStatisticsParams) WriteToRequest

func (o *UserStatisticsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UserStatisticsReader

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

UserStatisticsReader is a Reader for the UserStatistics structure.

func (*UserStatisticsReader) ReadResponse

func (o *UserStatisticsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UserStatisticsUnauthorized

type UserStatisticsUnauthorized struct {
}

UserStatisticsUnauthorized describes a response with status code 401, with default header values.

User not authenticated

func NewUserStatisticsUnauthorized

func NewUserStatisticsUnauthorized() *UserStatisticsUnauthorized

NewUserStatisticsUnauthorized creates a UserStatisticsUnauthorized with default headers values

func (*UserStatisticsUnauthorized) Error

func (*UserStatisticsUnauthorized) IsClientError

func (o *UserStatisticsUnauthorized) IsClientError() bool

IsClientError returns true when this user statistics unauthorized response has a 4xx status code

func (*UserStatisticsUnauthorized) IsCode

func (o *UserStatisticsUnauthorized) IsCode(code int) bool

IsCode returns true when this user statistics unauthorized response a status code equal to that given

func (*UserStatisticsUnauthorized) IsRedirect

func (o *UserStatisticsUnauthorized) IsRedirect() bool

IsRedirect returns true when this user statistics unauthorized response has a 3xx status code

func (*UserStatisticsUnauthorized) IsServerError

func (o *UserStatisticsUnauthorized) IsServerError() bool

IsServerError returns true when this user statistics unauthorized response has a 5xx status code

func (*UserStatisticsUnauthorized) IsSuccess

func (o *UserStatisticsUnauthorized) IsSuccess() bool

IsSuccess returns true when this user statistics unauthorized response has a 2xx status code

func (*UserStatisticsUnauthorized) String

func (o *UserStatisticsUnauthorized) String() string

Jump to

Keyboard shortcuts

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