leaderboard

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: LGPL-3.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 leaderboard API

func New

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

New creates a new leaderboard API client.

func (*Client) LeaderboardGet

func (a *Client) LeaderboardGet(params *LeaderboardGetParams) (*LeaderboardGetOK, error)

LeaderboardGet gets current leaderboard

func (*Client) LeaderboardGetName

func (a *Client) LeaderboardGetName(params *LeaderboardGetNameParams, authInfo runtime.ClientAuthInfoWriter) (*LeaderboardGetNameOK, error)

LeaderboardGetName gets your alias on the leaderboard

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type LeaderboardGetBadRequest

type LeaderboardGetBadRequest struct {
	Payload *models.Error
}

LeaderboardGetBadRequest handles this case with default header values.

Parameter Error

func NewLeaderboardGetBadRequest

func NewLeaderboardGetBadRequest() *LeaderboardGetBadRequest

NewLeaderboardGetBadRequest creates a LeaderboardGetBadRequest with default headers values

func (*LeaderboardGetBadRequest) Error

func (o *LeaderboardGetBadRequest) Error() string

type LeaderboardGetNameBadRequest

type LeaderboardGetNameBadRequest struct {
	Payload *models.Error
}

LeaderboardGetNameBadRequest handles this case with default header values.

Parameter Error

func NewLeaderboardGetNameBadRequest

func NewLeaderboardGetNameBadRequest() *LeaderboardGetNameBadRequest

NewLeaderboardGetNameBadRequest creates a LeaderboardGetNameBadRequest with default headers values

func (*LeaderboardGetNameBadRequest) Error

type LeaderboardGetNameNotFound

type LeaderboardGetNameNotFound struct {
	Payload *models.Error
}

LeaderboardGetNameNotFound handles this case with default header values.

Not Found

func NewLeaderboardGetNameNotFound

func NewLeaderboardGetNameNotFound() *LeaderboardGetNameNotFound

NewLeaderboardGetNameNotFound creates a LeaderboardGetNameNotFound with default headers values

func (*LeaderboardGetNameNotFound) Error

type LeaderboardGetNameOK

type LeaderboardGetNameOK struct {
	Payload *LeaderboardGetNameOKBody
}

LeaderboardGetNameOK handles this case with default header values.

Request was successful

func NewLeaderboardGetNameOK

func NewLeaderboardGetNameOK() *LeaderboardGetNameOK

NewLeaderboardGetNameOK creates a LeaderboardGetNameOK with default headers values

func (*LeaderboardGetNameOK) Error

func (o *LeaderboardGetNameOK) Error() string

type LeaderboardGetNameOKBody

type LeaderboardGetNameOKBody struct {

	// name
	Name string `json:"name,omitempty"`
}

LeaderboardGetNameOKBody leaderboard get name o k body swagger:model LeaderboardGetNameOKBody

func (*LeaderboardGetNameOKBody) MarshalBinary

func (o *LeaderboardGetNameOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LeaderboardGetNameOKBody) UnmarshalBinary

func (o *LeaderboardGetNameOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LeaderboardGetNameOKBody) Validate

func (o *LeaderboardGetNameOKBody) Validate(formats strfmt.Registry) error

Validate validates this leaderboard get name o k body

type LeaderboardGetNameParams

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

LeaderboardGetNameParams contains all the parameters to send to the API endpoint for the leaderboard get name operation typically these are written to a http.Request

func NewLeaderboardGetNameParams

func NewLeaderboardGetNameParams() *LeaderboardGetNameParams

NewLeaderboardGetNameParams creates a new LeaderboardGetNameParams object with the default values initialized.

func NewLeaderboardGetNameParamsWithContext

func NewLeaderboardGetNameParamsWithContext(ctx context.Context) *LeaderboardGetNameParams

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

func NewLeaderboardGetNameParamsWithHTTPClient

func NewLeaderboardGetNameParamsWithHTTPClient(client *http.Client) *LeaderboardGetNameParams

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

func NewLeaderboardGetNameParamsWithTimeout

func NewLeaderboardGetNameParamsWithTimeout(timeout time.Duration) *LeaderboardGetNameParams

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

func (*LeaderboardGetNameParams) SetContext

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

SetContext adds the context to the leaderboard get name params

func (*LeaderboardGetNameParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the leaderboard get name params

func (*LeaderboardGetNameParams) SetTimeout

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

SetTimeout adds the timeout to the leaderboard get name params

func (*LeaderboardGetNameParams) WithContext

WithContext adds the context to the leaderboard get name params

func (*LeaderboardGetNameParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the leaderboard get name params

func (*LeaderboardGetNameParams) WithTimeout

WithTimeout adds the timeout to the leaderboard get name params

func (*LeaderboardGetNameParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LeaderboardGetNameReader

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

LeaderboardGetNameReader is a Reader for the LeaderboardGetName structure.

func (*LeaderboardGetNameReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LeaderboardGetNameUnauthorized

type LeaderboardGetNameUnauthorized struct {
	Payload *models.Error
}

LeaderboardGetNameUnauthorized handles this case with default header values.

Unauthorized

func NewLeaderboardGetNameUnauthorized

func NewLeaderboardGetNameUnauthorized() *LeaderboardGetNameUnauthorized

NewLeaderboardGetNameUnauthorized creates a LeaderboardGetNameUnauthorized with default headers values

func (*LeaderboardGetNameUnauthorized) Error

type LeaderboardGetNotFound

type LeaderboardGetNotFound struct {
	Payload *models.Error
}

LeaderboardGetNotFound handles this case with default header values.

Not Found

func NewLeaderboardGetNotFound

func NewLeaderboardGetNotFound() *LeaderboardGetNotFound

NewLeaderboardGetNotFound creates a LeaderboardGetNotFound with default headers values

func (*LeaderboardGetNotFound) Error

func (o *LeaderboardGetNotFound) Error() string

type LeaderboardGetOK

type LeaderboardGetOK struct {
	Payload []*models.Leaderboard
}

LeaderboardGetOK handles this case with default header values.

Request was successful

func NewLeaderboardGetOK

func NewLeaderboardGetOK() *LeaderboardGetOK

NewLeaderboardGetOK creates a LeaderboardGetOK with default headers values

func (*LeaderboardGetOK) Error

func (o *LeaderboardGetOK) Error() string

type LeaderboardGetParams

type LeaderboardGetParams struct {

	/*Method
	  Ranking type. Options: "notional", "ROE"

	*/
	Method *string

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

LeaderboardGetParams contains all the parameters to send to the API endpoint for the leaderboard get operation typically these are written to a http.Request

func NewLeaderboardGetParams

func NewLeaderboardGetParams() *LeaderboardGetParams

NewLeaderboardGetParams creates a new LeaderboardGetParams object with the default values initialized.

func NewLeaderboardGetParamsWithContext

func NewLeaderboardGetParamsWithContext(ctx context.Context) *LeaderboardGetParams

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

func NewLeaderboardGetParamsWithHTTPClient

func NewLeaderboardGetParamsWithHTTPClient(client *http.Client) *LeaderboardGetParams

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

func NewLeaderboardGetParamsWithTimeout

func NewLeaderboardGetParamsWithTimeout(timeout time.Duration) *LeaderboardGetParams

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

func (*LeaderboardGetParams) SetContext

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

SetContext adds the context to the leaderboard get params

func (*LeaderboardGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the leaderboard get params

func (*LeaderboardGetParams) SetMethod

func (o *LeaderboardGetParams) SetMethod(method *string)

SetMethod adds the method to the leaderboard get params

func (*LeaderboardGetParams) SetTimeout

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

SetTimeout adds the timeout to the leaderboard get params

func (*LeaderboardGetParams) WithContext

WithContext adds the context to the leaderboard get params

func (*LeaderboardGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the leaderboard get params

func (*LeaderboardGetParams) WithMethod

func (o *LeaderboardGetParams) WithMethod(method *string) *LeaderboardGetParams

WithMethod adds the method to the leaderboard get params

func (*LeaderboardGetParams) WithTimeout

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

WithTimeout adds the timeout to the leaderboard get params

func (*LeaderboardGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type LeaderboardGetReader

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

LeaderboardGetReader is a Reader for the LeaderboardGet structure.

func (*LeaderboardGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LeaderboardGetUnauthorized

type LeaderboardGetUnauthorized struct {
	Payload *models.Error
}

LeaderboardGetUnauthorized handles this case with default header values.

Unauthorized

func NewLeaderboardGetUnauthorized

func NewLeaderboardGetUnauthorized() *LeaderboardGetUnauthorized

NewLeaderboardGetUnauthorized creates a LeaderboardGetUnauthorized with default headers values

func (*LeaderboardGetUnauthorized) Error

Jump to

Keyboard shortcuts

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