leaders

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: MIT 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 leaders API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new leaders API client.

func (*Client) Leader

func (a *Client) Leader(params *LeaderParams, authInfo runtime.ClientAuthInfoWriter) (*LeaderOK, error)

Leader List of users ranked by coding activity in descending order. Same as the public leaderboards.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type LeaderNotFound

type LeaderNotFound struct {
	Payload *models.Error
}

LeaderNotFound handles this case with default header values.

The resource does not exist.

func NewLeaderNotFound

func NewLeaderNotFound() *LeaderNotFound

NewLeaderNotFound creates a LeaderNotFound with default headers values

func (*LeaderNotFound) Error

func (o *LeaderNotFound) Error() string

type LeaderOK

type LeaderOK struct {
	Payload *models.Leaders
}

LeaderOK handles this case with default header values.

The request has succeeded.

func NewLeaderOK

func NewLeaderOK() *LeaderOK

NewLeaderOK creates a LeaderOK with default headers values

func (*LeaderOK) Error

func (o *LeaderOK) Error() string

type LeaderParams

type LeaderParams struct {

	/*Language
	  Filter leaders by a specific language.

	*/
	Language *string
	/*Page
	  Page number of leaderboard.

	*/
	Page *int64

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

LeaderParams contains all the parameters to send to the API endpoint for the leader operation typically these are written to a http.Request

func NewLeaderParams

func NewLeaderParams() *LeaderParams

NewLeaderParams creates a new LeaderParams object with the default values initialized.

func NewLeaderParamsWithContext

func NewLeaderParamsWithContext(ctx context.Context) *LeaderParams

NewLeaderParamsWithContext creates a new LeaderParams object with the default values initialized, and the ability to set a context for a request

func NewLeaderParamsWithHTTPClient

func NewLeaderParamsWithHTTPClient(client *http.Client) *LeaderParams

NewLeaderParamsWithHTTPClient creates a new LeaderParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewLeaderParamsWithTimeout

func NewLeaderParamsWithTimeout(timeout time.Duration) *LeaderParams

NewLeaderParamsWithTimeout creates a new LeaderParams object with the default values initialized, and the ability to set a timeout on a request

func (*LeaderParams) SetContext

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

SetContext adds the context to the leader params

func (*LeaderParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the leader params

func (*LeaderParams) SetLanguage

func (o *LeaderParams) SetLanguage(language *string)

SetLanguage adds the language to the leader params

func (*LeaderParams) SetPage

func (o *LeaderParams) SetPage(page *int64)

SetPage adds the page to the leader params

func (*LeaderParams) SetTimeout

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

SetTimeout adds the timeout to the leader params

func (*LeaderParams) WithContext

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

WithContext adds the context to the leader params

func (*LeaderParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the leader params

func (*LeaderParams) WithLanguage

func (o *LeaderParams) WithLanguage(language *string) *LeaderParams

WithLanguage adds the language to the leader params

func (*LeaderParams) WithPage

func (o *LeaderParams) WithPage(page *int64) *LeaderParams

WithPage adds the page to the leader params

func (*LeaderParams) WithTimeout

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

WithTimeout adds the timeout to the leader params

func (*LeaderParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type LeaderReader

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

LeaderReader is a Reader for the Leader structure.

func (*LeaderReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LeaderUnauthorized

type LeaderUnauthorized struct {
	Payload *models.Error
}

LeaderUnauthorized handles this case with default header values.

The request requires authentication, or your authentication was invalid.

func NewLeaderUnauthorized

func NewLeaderUnauthorized() *LeaderUnauthorized

NewLeaderUnauthorized creates a LeaderUnauthorized with default headers values

func (*LeaderUnauthorized) Error

func (o *LeaderUnauthorized) Error() string

Jump to

Keyboard shortcuts

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