...

Package openapi

import "go.formulabun.club/replays/ingest/client"
Overview
Index

Overview ▾

Index ▾

Variables
func CacheExpires(r *http.Response) time.Time
func PtrBool(v bool) *bool
func PtrFloat32(v float32) *float32
func PtrFloat64(v float64) *float64
func PtrInt(v int) *int
func PtrInt32(v int32) *int32
func PtrInt64(v int64) *int64
func PtrString(v string) *string
func PtrTime(v time.Time) *time.Time
type APIClient
    func NewAPIClient(cfg *Configuration) *APIClient
    func (c *APIClient) GetConfig() *Configuration
type APIKey
type APIResponse
    func NewAPIResponse(r *http.Response) *APIResponse
    func NewAPIResponseWithError(errorMessage string) *APIResponse
type ApiListGetRequest
    func (r ApiListGetRequest) Execute() ([]string, *http.Response, error)
type ApiRootPostRequest
    func (r ApiRootPostRequest) Body(body *os.File) ApiRootPostRequest
    func (r ApiRootPostRequest) Execute() (*http.Response, error)
type BasicAuth
type Configuration
    func NewConfiguration() *Configuration
    func (c *Configuration) AddDefaultHeader(key string, value string)
    func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)
    func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)
type DefaultApiService
    func (a *DefaultApiService) ListGet(ctx context.Context) ApiListGetRequest
    func (a *DefaultApiService) ListGetExecute(r ApiListGetRequest) ([]string, *http.Response, error)
    func (a *DefaultApiService) RootPost(ctx context.Context) ApiRootPostRequest
    func (a *DefaultApiService) RootPostExecute(r ApiRootPostRequest) (*http.Response, error)
type GenericOpenAPIError
    func (e GenericOpenAPIError) Body() []byte
    func (e GenericOpenAPIError) Error() string
    func (e GenericOpenAPIError) Model() interface{}
type Graphql
    func NewGraphql() *Graphql
    func NewGraphqlWithDefaults() *Graphql
    func (o *Graphql) GetData() map[string]interface{}
    func (o *Graphql) GetDataOk() (map[string]interface{}, bool)
    func (o *Graphql) GetErrors() []map[string]interface{}
    func (o *Graphql) GetErrorsOk() ([]map[string]interface{}, bool)
    func (o *Graphql) HasData() bool
    func (o *Graphql) HasErrors() bool
    func (o Graphql) MarshalJSON() ([]byte, error)
    func (o *Graphql) SetData(v map[string]interface{})
    func (o *Graphql) SetErrors(v []map[string]interface{})
type NullableBool
    func NewNullableBool(val *bool) *NullableBool
    func (v NullableBool) Get() *bool
    func (v NullableBool) IsSet() bool
    func (v NullableBool) MarshalJSON() ([]byte, error)
    func (v *NullableBool) Set(val *bool)
    func (v *NullableBool) UnmarshalJSON(src []byte) error
    func (v *NullableBool) Unset()
type NullableFloat32
    func NewNullableFloat32(val *float32) *NullableFloat32
    func (v NullableFloat32) Get() *float32
    func (v NullableFloat32) IsSet() bool
    func (v NullableFloat32) MarshalJSON() ([]byte, error)
    func (v *NullableFloat32) Set(val *float32)
    func (v *NullableFloat32) UnmarshalJSON(src []byte) error
    func (v *NullableFloat32) Unset()
type NullableFloat64
    func NewNullableFloat64(val *float64) *NullableFloat64
    func (v NullableFloat64) Get() *float64
    func (v NullableFloat64) IsSet() bool
    func (v NullableFloat64) MarshalJSON() ([]byte, error)
    func (v *NullableFloat64) Set(val *float64)
    func (v *NullableFloat64) UnmarshalJSON(src []byte) error
    func (v *NullableFloat64) Unset()
type NullableGraphql
    func NewNullableGraphql(val *Graphql) *NullableGraphql
    func (v NullableGraphql) Get() *Graphql
    func (v NullableGraphql) IsSet() bool
    func (v NullableGraphql) MarshalJSON() ([]byte, error)
    func (v *NullableGraphql) Set(val *Graphql)
    func (v *NullableGraphql) UnmarshalJSON(src []byte) error
    func (v *NullableGraphql) Unset()
type NullableInt
    func NewNullableInt(val *int) *NullableInt
    func (v NullableInt) Get() *int
    func (v NullableInt) IsSet() bool
    func (v NullableInt) MarshalJSON() ([]byte, error)
    func (v *NullableInt) Set(val *int)
    func (v *NullableInt) UnmarshalJSON(src []byte) error
    func (v *NullableInt) Unset()
type NullableInt32
    func NewNullableInt32(val *int32) *NullableInt32
    func (v NullableInt32) Get() *int32
    func (v NullableInt32) IsSet() bool
    func (v NullableInt32) MarshalJSON() ([]byte, error)
    func (v *NullableInt32) Set(val *int32)
    func (v *NullableInt32) UnmarshalJSON(src []byte) error
    func (v *NullableInt32) Unset()
type NullableInt64
    func NewNullableInt64(val *int64) *NullableInt64
    func (v NullableInt64) Get() *int64
    func (v NullableInt64) IsSet() bool
    func (v NullableInt64) MarshalJSON() ([]byte, error)
    func (v *NullableInt64) Set(val *int64)
    func (v *NullableInt64) UnmarshalJSON(src []byte) error
    func (v *NullableInt64) Unset()
type NullablePlayerEntry
    func NewNullablePlayerEntry(val *PlayerEntry) *NullablePlayerEntry
    func (v NullablePlayerEntry) Get() *PlayerEntry
    func (v NullablePlayerEntry) IsSet() bool
    func (v NullablePlayerEntry) MarshalJSON() ([]byte, error)
    func (v *NullablePlayerEntry) Set(val *PlayerEntry)
    func (v *NullablePlayerEntry) UnmarshalJSON(src []byte) error
    func (v *NullablePlayerEntry) Unset()
type NullableReplay
    func NewNullableReplay(val *Replay) *NullableReplay
    func (v NullableReplay) Get() *Replay
    func (v NullableReplay) IsSet() bool
    func (v NullableReplay) MarshalJSON() ([]byte, error)
    func (v *NullableReplay) Set(val *Replay)
    func (v *NullableReplay) UnmarshalJSON(src []byte) error
    func (v *NullableReplay) Unset()
type NullableString
    func NewNullableString(val *string) *NullableString
    func (v NullableString) Get() *string
    func (v NullableString) IsSet() bool
    func (v NullableString) MarshalJSON() ([]byte, error)
    func (v *NullableString) Set(val *string)
    func (v *NullableString) UnmarshalJSON(src []byte) error
    func (v *NullableString) Unset()
type NullableTime
    func NewNullableTime(val *time.Time) *NullableTime
    func (v NullableTime) Get() *time.Time
    func (v NullableTime) IsSet() bool
    func (v NullableTime) MarshalJSON() ([]byte, error)
    func (v *NullableTime) Set(val *time.Time)
    func (v *NullableTime) UnmarshalJSON(src []byte) error
    func (v *NullableTime) Unset()
type PlayerEntry
    func NewPlayerEntry() *PlayerEntry
    func NewPlayerEntryWithDefaults() *PlayerEntry
    func (o *PlayerEntry) GetColor() string
    func (o *PlayerEntry) GetColorOk() (*string, bool)
    func (o *PlayerEntry) GetName() string
    func (o *PlayerEntry) GetNameOk() (*string, bool)
    func (o *PlayerEntry) GetScore() float32
    func (o *PlayerEntry) GetScoreOk() (*float32, bool)
    func (o *PlayerEntry) GetSkin() string
    func (o *PlayerEntry) GetSkinOk() (*string, bool)
    func (o *PlayerEntry) GetSpeed() float32
    func (o *PlayerEntry) GetSpeedOk() (*float32, bool)
    func (o *PlayerEntry) GetWeight() float32
    func (o *PlayerEntry) GetWeightOk() (*float32, bool)
    func (o *PlayerEntry) HasColor() bool
    func (o *PlayerEntry) HasName() bool
    func (o *PlayerEntry) HasScore() bool
    func (o *PlayerEntry) HasSkin() bool
    func (o *PlayerEntry) HasSpeed() bool
    func (o *PlayerEntry) HasWeight() bool
    func (o PlayerEntry) MarshalJSON() ([]byte, error)
    func (o *PlayerEntry) SetColor(v string)
    func (o *PlayerEntry) SetName(v string)
    func (o *PlayerEntry) SetScore(v float32)
    func (o *PlayerEntry) SetSkin(v string)
    func (o *PlayerEntry) SetSpeed(v float32)
    func (o *PlayerEntry) SetWeight(v float32)
type Replay
    func NewReplay() *Replay
    func NewReplayWithDefaults() *Replay
    func (o *Replay) GetGameMap() float32
    func (o *Replay) GetGameMapOk() (*float32, bool)
    func (o *Replay) GetLap() float32
    func (o *Replay) GetLapOk() (*float32, bool)
    func (o *Replay) GetPlayerEntries() []PlayerEntry
    func (o *Replay) GetPlayerEntriesOk() ([]PlayerEntry, bool)
    func (o *Replay) GetTime() float32
    func (o *Replay) GetTimeOk() (*float32, bool)
    func (o *Replay) GetTitle() string
    func (o *Replay) GetTitleOk() (*string, bool)
    func (o *Replay) HasGameMap() bool
    func (o *Replay) HasLap() bool
    func (o *Replay) HasPlayerEntries() bool
    func (o *Replay) HasTime() bool
    func (o *Replay) HasTitle() bool
    func (o Replay) MarshalJSON() ([]byte, error)
    func (o *Replay) SetGameMap(v float32)
    func (o *Replay) SetLap(v float32)
    func (o *Replay) SetPlayerEntries(v []PlayerEntry)
    func (o *Replay) SetTime(v float32)
    func (o *Replay) SetTitle(v string)
type ServerConfiguration
type ServerConfigurations
    func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)
type ServerVariable

Package files

api_default.go client.go configuration.go model_graphql.go model_player_entry.go model_replay.go response.go utils.go

Variables

var (
    // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
    ContextOAuth2 = contextKey("token")

    // ContextBasicAuth takes BasicAuth as authentication for the request.
    ContextBasicAuth = contextKey("basic")

    // ContextAccessToken takes a string oauth2 access token as authentication for the request.
    ContextAccessToken = contextKey("accesstoken")

    // ContextAPIKeys takes a string apikey as authentication for the request
    ContextAPIKeys = contextKey("apiKeys")

    // ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
    ContextHttpSignatureAuth = contextKey("httpsignature")

    // ContextServerIndex uses a server configuration from the index.
    ContextServerIndex = contextKey("serverIndex")

    // ContextOperationServerIndices uses a server configuration from the index mapping.
    ContextOperationServerIndices = contextKey("serverOperationIndices")

    // ContextServerVariables overrides a server configuration variables.
    ContextServerVariables = contextKey("serverVariables")

    // ContextOperationServerVariables overrides a server configuration variables using operation specific values.
    ContextOperationServerVariables = contextKey("serverOperationVariables")
)

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

type APIClient

APIClient manages communication with the GoBun File Store API v0.0.1 In most cases there should be only one, shared, APIClient.

type APIClient struct {
    DefaultApi *DefaultApiService
    // contains filtered or unexported fields
}

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIKey struct {
    Key    string
    Prefix string
}

type APIResponse

APIResponse stores the API response returned by the server.

type APIResponse struct {
    *http.Response `json:"-"`
    Message        string `json:"message,omitempty"`
    // Operation is the name of the OpenAPI operation.
    Operation string `json:"operation,omitempty"`
    // RequestURL is the request URL. This value is always available, even if the
    // embedded *http.Response is nil.
    RequestURL string `json:"url,omitempty"`
    // Method is the HTTP method used for the request.  This value is always
    // available, even if the embedded *http.Response is nil.
    Method string `json:"method,omitempty"`
    // Payload holds the contents of the response body (which may be nil or empty).
    // This is provided here as the raw response.Body() reader will have already
    // been drained.
    Payload []byte `json:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiListGetRequest

type ApiListGetRequest struct {
    ApiService *DefaultApiService
    // contains filtered or unexported fields
}

func (ApiListGetRequest) Execute

func (r ApiListGetRequest) Execute() ([]string, *http.Response, error)

type ApiRootPostRequest

type ApiRootPostRequest struct {
    ApiService *DefaultApiService
    // contains filtered or unexported fields
}

func (ApiRootPostRequest) Body

func (r ApiRootPostRequest) Body(body *os.File) ApiRootPostRequest

a replay file

func (ApiRootPostRequest) Execute

func (r ApiRootPostRequest) Execute() (*http.Response, error)

type BasicAuth

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BasicAuth struct {
    UserName string `json:"userName,omitempty"`
    Password string `json:"password,omitempty"`
}

type Configuration

Configuration stores the configuration of the API client

type Configuration struct {
    Host             string            `json:"host,omitempty"`
    Scheme           string            `json:"scheme,omitempty"`
    DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
    UserAgent        string            `json:"userAgent,omitempty"`
    Debug            bool              `json:"debug,omitempty"`
    Servers          ServerConfigurations
    OperationServers map[string]ServerConfigurations
    HTTPClient       *http.Client
}

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type DefaultApiService

DefaultApiService DefaultApi service

type DefaultApiService service

func (*DefaultApiService) ListGet

func (a *DefaultApiService) ListGet(ctx context.Context) ApiListGetRequest

ListGet Get the list of replay files

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiListGetRequest

func (*DefaultApiService) ListGetExecute

func (a *DefaultApiService) ListGetExecute(r ApiListGetRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

func (*DefaultApiService) RootPost

func (a *DefaultApiService) RootPost(ctx context.Context) ApiRootPostRequest

RootPost Upload a new replay file

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiRootPostRequest

func (*DefaultApiService) RootPostExecute

func (a *DefaultApiService) RootPostExecute(r ApiRootPostRequest) (*http.Response, error)

Execute executes the request

type GenericOpenAPIError

GenericOpenAPIError Provides access to the body, error and model on returned errors.

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

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type Graphql

Graphql struct for Graphql

type Graphql struct {
    Data   map[string]interface{}   `json:"data,omitempty"`
    Errors []map[string]interface{} `json:"errors,omitempty"`
}

func NewGraphql

func NewGraphql() *Graphql

NewGraphql instantiates a new Graphql object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewGraphqlWithDefaults

func NewGraphqlWithDefaults() *Graphql

NewGraphqlWithDefaults instantiates a new Graphql object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Graphql) GetData

func (o *Graphql) GetData() map[string]interface{}

GetData returns the Data field value if set, zero value otherwise.

func (*Graphql) GetDataOk

func (o *Graphql) GetDataOk() (map[string]interface{}, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Graphql) GetErrors

func (o *Graphql) GetErrors() []map[string]interface{}

GetErrors returns the Errors field value if set, zero value otherwise.

func (*Graphql) GetErrorsOk

func (o *Graphql) GetErrorsOk() ([]map[string]interface{}, bool)

GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Graphql) HasData

func (o *Graphql) HasData() bool

HasData returns a boolean if a field has been set.

func (*Graphql) HasErrors

func (o *Graphql) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (Graphql) MarshalJSON

func (o Graphql) MarshalJSON() ([]byte, error)

func (*Graphql) SetData

func (o *Graphql) SetData(v map[string]interface{})

SetData gets a reference to the given map[string]interface{} and assigns it to the Data field.

func (*Graphql) SetErrors

func (o *Graphql) SetErrors(v []map[string]interface{})

SetErrors gets a reference to the given []map[string]interface{} and assigns it to the Errors field.

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGraphql

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

func NewNullableGraphql

func NewNullableGraphql(val *Graphql) *NullableGraphql

func (NullableGraphql) Get

func (v NullableGraphql) Get() *Graphql

func (NullableGraphql) IsSet

func (v NullableGraphql) IsSet() bool

func (NullableGraphql) MarshalJSON

func (v NullableGraphql) MarshalJSON() ([]byte, error)

func (*NullableGraphql) Set

func (v *NullableGraphql) Set(val *Graphql)

func (*NullableGraphql) UnmarshalJSON

func (v *NullableGraphql) UnmarshalJSON(src []byte) error

func (*NullableGraphql) Unset

func (v *NullableGraphql) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullablePlayerEntry

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

func NewNullablePlayerEntry

func NewNullablePlayerEntry(val *PlayerEntry) *NullablePlayerEntry

func (NullablePlayerEntry) Get

func (v NullablePlayerEntry) Get() *PlayerEntry

func (NullablePlayerEntry) IsSet

func (v NullablePlayerEntry) IsSet() bool

func (NullablePlayerEntry) MarshalJSON

func (v NullablePlayerEntry) MarshalJSON() ([]byte, error)

func (*NullablePlayerEntry) Set

func (v *NullablePlayerEntry) Set(val *PlayerEntry)

func (*NullablePlayerEntry) UnmarshalJSON

func (v *NullablePlayerEntry) UnmarshalJSON(src []byte) error

func (*NullablePlayerEntry) Unset

func (v *NullablePlayerEntry) Unset()

type NullableReplay

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

func NewNullableReplay

func NewNullableReplay(val *Replay) *NullableReplay

func (NullableReplay) Get

func (v NullableReplay) Get() *Replay

func (NullableReplay) IsSet

func (v NullableReplay) IsSet() bool

func (NullableReplay) MarshalJSON

func (v NullableReplay) MarshalJSON() ([]byte, error)

func (*NullableReplay) Set

func (v *NullableReplay) Set(val *Replay)

func (*NullableReplay) UnmarshalJSON

func (v *NullableReplay) UnmarshalJSON(src []byte) error

func (*NullableReplay) Unset

func (v *NullableReplay) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type PlayerEntry

PlayerEntry struct for PlayerEntry

type PlayerEntry struct {
    Name   *string  `json:"Name,omitempty"`
    Skin   *string  `json:"Skin,omitempty"`
    Color  *string  `json:"Color,omitempty"`
    Score  *float32 `json:"Score,omitempty"`
    Speed  *float32 `json:"Speed,omitempty"`
    Weight *float32 `json:"Weight,omitempty"`
}

func NewPlayerEntry

func NewPlayerEntry() *PlayerEntry

NewPlayerEntry instantiates a new PlayerEntry object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPlayerEntryWithDefaults

func NewPlayerEntryWithDefaults() *PlayerEntry

NewPlayerEntryWithDefaults instantiates a new PlayerEntry object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PlayerEntry) GetColor

func (o *PlayerEntry) GetColor() string

GetColor returns the Color field value if set, zero value otherwise.

func (*PlayerEntry) GetColorOk

func (o *PlayerEntry) GetColorOk() (*string, bool)

GetColorOk returns a tuple with the Color field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlayerEntry) GetName

func (o *PlayerEntry) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*PlayerEntry) GetNameOk

func (o *PlayerEntry) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlayerEntry) GetScore

func (o *PlayerEntry) GetScore() float32

GetScore returns the Score field value if set, zero value otherwise.

func (*PlayerEntry) GetScoreOk

func (o *PlayerEntry) GetScoreOk() (*float32, bool)

GetScoreOk returns a tuple with the Score field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlayerEntry) GetSkin

func (o *PlayerEntry) GetSkin() string

GetSkin returns the Skin field value if set, zero value otherwise.

func (*PlayerEntry) GetSkinOk

func (o *PlayerEntry) GetSkinOk() (*string, bool)

GetSkinOk returns a tuple with the Skin field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlayerEntry) GetSpeed

func (o *PlayerEntry) GetSpeed() float32

GetSpeed returns the Speed field value if set, zero value otherwise.

func (*PlayerEntry) GetSpeedOk

func (o *PlayerEntry) GetSpeedOk() (*float32, bool)

GetSpeedOk returns a tuple with the Speed field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlayerEntry) GetWeight

func (o *PlayerEntry) GetWeight() float32

GetWeight returns the Weight field value if set, zero value otherwise.

func (*PlayerEntry) GetWeightOk

func (o *PlayerEntry) GetWeightOk() (*float32, bool)

GetWeightOk returns a tuple with the Weight field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PlayerEntry) HasColor

func (o *PlayerEntry) HasColor() bool

HasColor returns a boolean if a field has been set.

func (*PlayerEntry) HasName

func (o *PlayerEntry) HasName() bool

HasName returns a boolean if a field has been set.

func (*PlayerEntry) HasScore

func (o *PlayerEntry) HasScore() bool

HasScore returns a boolean if a field has been set.

func (*PlayerEntry) HasSkin

func (o *PlayerEntry) HasSkin() bool

HasSkin returns a boolean if a field has been set.

func (*PlayerEntry) HasSpeed

func (o *PlayerEntry) HasSpeed() bool

HasSpeed returns a boolean if a field has been set.

func (*PlayerEntry) HasWeight

func (o *PlayerEntry) HasWeight() bool

HasWeight returns a boolean if a field has been set.

func (PlayerEntry) MarshalJSON

func (o PlayerEntry) MarshalJSON() ([]byte, error)

func (*PlayerEntry) SetColor

func (o *PlayerEntry) SetColor(v string)

SetColor gets a reference to the given string and assigns it to the Color field.

func (*PlayerEntry) SetName

func (o *PlayerEntry) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*PlayerEntry) SetScore

func (o *PlayerEntry) SetScore(v float32)

SetScore gets a reference to the given float32 and assigns it to the Score field.

func (*PlayerEntry) SetSkin

func (o *PlayerEntry) SetSkin(v string)

SetSkin gets a reference to the given string and assigns it to the Skin field.

func (*PlayerEntry) SetSpeed

func (o *PlayerEntry) SetSpeed(v float32)

SetSpeed gets a reference to the given float32 and assigns it to the Speed field.

func (*PlayerEntry) SetWeight

func (o *PlayerEntry) SetWeight(v float32)

SetWeight gets a reference to the given float32 and assigns it to the Weight field.

type Replay

Replay struct for Replay

type Replay struct {
    Title         *string       `json:"Title,omitempty"`
    GameMap       *float32      `json:"GameMap,omitempty"`
    Time          *float32      `json:"Time,omitempty"`
    Lap           *float32      `json:"Lap,omitempty"`
    PlayerEntries []PlayerEntry `json:"PlayerEntries,omitempty"`
}

func NewReplay

func NewReplay() *Replay

NewReplay instantiates a new Replay object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewReplayWithDefaults

func NewReplayWithDefaults() *Replay

NewReplayWithDefaults instantiates a new Replay object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Replay) GetGameMap

func (o *Replay) GetGameMap() float32

GetGameMap returns the GameMap field value if set, zero value otherwise.

func (*Replay) GetGameMapOk

func (o *Replay) GetGameMapOk() (*float32, bool)

GetGameMapOk returns a tuple with the GameMap field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Replay) GetLap

func (o *Replay) GetLap() float32

GetLap returns the Lap field value if set, zero value otherwise.

func (*Replay) GetLapOk

func (o *Replay) GetLapOk() (*float32, bool)

GetLapOk returns a tuple with the Lap field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Replay) GetPlayerEntries

func (o *Replay) GetPlayerEntries() []PlayerEntry

GetPlayerEntries returns the PlayerEntries field value if set, zero value otherwise.

func (*Replay) GetPlayerEntriesOk

func (o *Replay) GetPlayerEntriesOk() ([]PlayerEntry, bool)

GetPlayerEntriesOk returns a tuple with the PlayerEntries field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Replay) GetTime

func (o *Replay) GetTime() float32

GetTime returns the Time field value if set, zero value otherwise.

func (*Replay) GetTimeOk

func (o *Replay) GetTimeOk() (*float32, bool)

GetTimeOk returns a tuple with the Time field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Replay) GetTitle

func (o *Replay) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*Replay) GetTitleOk

func (o *Replay) GetTitleOk() (*string, bool)

GetTitleOk returns a tuple with the Title field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Replay) HasGameMap

func (o *Replay) HasGameMap() bool

HasGameMap returns a boolean if a field has been set.

func (*Replay) HasLap

func (o *Replay) HasLap() bool

HasLap returns a boolean if a field has been set.

func (*Replay) HasPlayerEntries

func (o *Replay) HasPlayerEntries() bool

HasPlayerEntries returns a boolean if a field has been set.

func (*Replay) HasTime

func (o *Replay) HasTime() bool

HasTime returns a boolean if a field has been set.

func (*Replay) HasTitle

func (o *Replay) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (Replay) MarshalJSON

func (o Replay) MarshalJSON() ([]byte, error)

func (*Replay) SetGameMap

func (o *Replay) SetGameMap(v float32)

SetGameMap gets a reference to the given float32 and assigns it to the GameMap field.

func (*Replay) SetLap

func (o *Replay) SetLap(v float32)

SetLap gets a reference to the given float32 and assigns it to the Lap field.

func (*Replay) SetPlayerEntries

func (o *Replay) SetPlayerEntries(v []PlayerEntry)

SetPlayerEntries gets a reference to the given []PlayerEntry and assigns it to the PlayerEntries field.

func (*Replay) SetTime

func (o *Replay) SetTime(v float32)

SetTime gets a reference to the given float32 and assigns it to the Time field.

func (*Replay) SetTitle

func (o *Replay) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

type ServerConfiguration

ServerConfiguration stores the information about a server

type ServerConfiguration struct {
    URL         string
    Description string
    Variables   map[string]ServerVariable
}

type ServerConfigurations

ServerConfigurations stores multiple ServerConfiguration items

type ServerConfigurations []ServerConfiguration

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

ServerVariable stores the information about a server variable

type ServerVariable struct {
    Description  string
    DefaultValue string
    EnumValues   []string
}