...

Package openapi

import "go.formulabun.club/translator/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 ApiFilesGetRequest
    func (r ApiFilesGetRequest) Execute() ([]string, *http.Response, error)
type ApiPlayerinfoGetRequest
    func (r ApiPlayerinfoGetRequest) Execute() ([]PlayerInfoEntry, *http.Response, error)
type ApiServerinfoGetRequest
    func (r ApiServerinfoGetRequest) Execute() (*ServerInfo, *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) FilesGet(ctx context.Context) ApiFilesGetRequest
    func (a *DefaultApiService) FilesGetExecute(r ApiFilesGetRequest) ([]string, *http.Response, error)
    func (a *DefaultApiService) PlayerinfoGet(ctx context.Context) ApiPlayerinfoGetRequest
    func (a *DefaultApiService) PlayerinfoGetExecute(r ApiPlayerinfoGetRequest) ([]PlayerInfoEntry, *http.Response, error)
    func (a *DefaultApiService) ServerinfoGet(ctx context.Context) ApiServerinfoGetRequest
    func (a *DefaultApiService) ServerinfoGetExecute(r ApiServerinfoGetRequest) (*ServerInfo, *http.Response, error)
type FileNeededInner
    func NewFileNeededInner() *FileNeededInner
    func NewFileNeededInnerWithDefaults() *FileNeededInner
    func (o *FileNeededInner) GetFileName() string
    func (o *FileNeededInner) GetFileNameOk() (*string, bool)
    func (o *FileNeededInner) GetMD5() []float32
    func (o *FileNeededInner) GetMD5Ok() ([]float32, bool)
    func (o *FileNeededInner) GetTotalSize() float32
    func (o *FileNeededInner) GetTotalSizeOk() (*float32, bool)
    func (o *FileNeededInner) GetWillSend() bool
    func (o *FileNeededInner) GetWillSendOk() (*bool, bool)
    func (o *FileNeededInner) HasFileName() bool
    func (o *FileNeededInner) HasMD5() bool
    func (o *FileNeededInner) HasTotalSize() bool
    func (o *FileNeededInner) HasWillSend() bool
    func (o FileNeededInner) MarshalJSON() ([]byte, error)
    func (o *FileNeededInner) SetFileName(v string)
    func (o *FileNeededInner) SetMD5(v []float32)
    func (o *FileNeededInner) SetTotalSize(v float32)
    func (o *FileNeededInner) SetWillSend(v bool)
type GenericOpenAPIError
    func (e GenericOpenAPIError) Body() []byte
    func (e GenericOpenAPIError) Error() string
    func (e GenericOpenAPIError) Model() 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 NullableFileNeededInner
    func NewNullableFileNeededInner(val *FileNeededInner) *NullableFileNeededInner
    func (v NullableFileNeededInner) Get() *FileNeededInner
    func (v NullableFileNeededInner) IsSet() bool
    func (v NullableFileNeededInner) MarshalJSON() ([]byte, error)
    func (v *NullableFileNeededInner) Set(val *FileNeededInner)
    func (v *NullableFileNeededInner) UnmarshalJSON(src []byte) error
    func (v *NullableFileNeededInner) 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 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 NullablePlayerInfo
    func NewNullablePlayerInfo(val *PlayerInfo) *NullablePlayerInfo
    func (v NullablePlayerInfo) Get() *PlayerInfo
    func (v NullablePlayerInfo) IsSet() bool
    func (v NullablePlayerInfo) MarshalJSON() ([]byte, error)
    func (v *NullablePlayerInfo) Set(val *PlayerInfo)
    func (v *NullablePlayerInfo) UnmarshalJSON(src []byte) error
    func (v *NullablePlayerInfo) Unset()
type NullablePlayerInfoEntry
    func NewNullablePlayerInfoEntry(val *PlayerInfoEntry) *NullablePlayerInfoEntry
    func (v NullablePlayerInfoEntry) Get() *PlayerInfoEntry
    func (v NullablePlayerInfoEntry) IsSet() bool
    func (v NullablePlayerInfoEntry) MarshalJSON() ([]byte, error)
    func (v *NullablePlayerInfoEntry) Set(val *PlayerInfoEntry)
    func (v *NullablePlayerInfoEntry) UnmarshalJSON(src []byte) error
    func (v *NullablePlayerInfoEntry) Unset()
type NullableServerInfo
    func NewNullableServerInfo(val *ServerInfo) *NullableServerInfo
    func (v NullableServerInfo) Get() *ServerInfo
    func (v NullableServerInfo) IsSet() bool
    func (v NullableServerInfo) MarshalJSON() ([]byte, error)
    func (v *NullableServerInfo) Set(val *ServerInfo)
    func (v *NullableServerInfo) UnmarshalJSON(src []byte) error
    func (v *NullableServerInfo) 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 PlayerInfo
    func NewPlayerInfo() *PlayerInfo
    func NewPlayerInfoWithDefaults() *PlayerInfo
    func (o *PlayerInfo) GetPlayerInfo() []PlayerInfoEntry
    func (o *PlayerInfo) GetPlayerInfoOk() ([]PlayerInfoEntry, bool)
    func (o *PlayerInfo) HasPlayerInfo() bool
    func (o PlayerInfo) MarshalJSON() ([]byte, error)
    func (o *PlayerInfo) SetPlayerInfo(v []PlayerInfoEntry)
type PlayerInfoEntry
    func NewPlayerInfoEntry() *PlayerInfoEntry
    func NewPlayerInfoEntryWithDefaults() *PlayerInfoEntry
    func (o *PlayerInfoEntry) GetAddress() string
    func (o *PlayerInfoEntry) GetAddressOk() (*string, bool)
    func (o *PlayerInfoEntry) GetData() float32
    func (o *PlayerInfoEntry) GetDataOk() (*float32, bool)
    func (o *PlayerInfoEntry) GetName() string
    func (o *PlayerInfoEntry) GetNameOk() (*string, bool)
    func (o *PlayerInfoEntry) GetNode() float32
    func (o *PlayerInfoEntry) GetNodeOk() (*float32, bool)
    func (o *PlayerInfoEntry) GetScore() float32
    func (o *PlayerInfoEntry) GetScoreOk() (*float32, bool)
    func (o *PlayerInfoEntry) GetSkin() float32
    func (o *PlayerInfoEntry) GetSkinOk() (*float32, bool)
    func (o *PlayerInfoEntry) GetTeam() float32
    func (o *PlayerInfoEntry) GetTeamOk() (*float32, bool)
    func (o *PlayerInfoEntry) GetTimeInServer() float32
    func (o *PlayerInfoEntry) GetTimeInServerOk() (*float32, bool)
    func (o *PlayerInfoEntry) HasAddress() bool
    func (o *PlayerInfoEntry) HasData() bool
    func (o *PlayerInfoEntry) HasName() bool
    func (o *PlayerInfoEntry) HasNode() bool
    func (o *PlayerInfoEntry) HasScore() bool
    func (o *PlayerInfoEntry) HasSkin() bool
    func (o *PlayerInfoEntry) HasTeam() bool
    func (o *PlayerInfoEntry) HasTimeInServer() bool
    func (o PlayerInfoEntry) MarshalJSON() ([]byte, error)
    func (o *PlayerInfoEntry) SetAddress(v string)
    func (o *PlayerInfoEntry) SetData(v float32)
    func (o *PlayerInfoEntry) SetName(v string)
    func (o *PlayerInfoEntry) SetNode(v float32)
    func (o *PlayerInfoEntry) SetScore(v float32)
    func (o *PlayerInfoEntry) SetSkin(v float32)
    func (o *PlayerInfoEntry) SetTeam(v float32)
    func (o *PlayerInfoEntry) SetTimeInServer(v float32)
type ServerConfiguration
type ServerConfigurations
    func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)
type ServerInfo
    func NewServerInfo() *ServerInfo
    func NewServerInfoWithDefaults() *ServerInfo
    func (o *ServerInfo) GetActNum() float32
    func (o *ServerInfo) GetActNumOk() (*float32, bool)
    func (o *ServerInfo) GetApplication() string
    func (o *ServerInfo) GetApplicationOk() (*string, bool)
    func (o *ServerInfo) GetCheatsEnabled() bool
    func (o *ServerInfo) GetCheatsEnabledOk() (*bool, bool)
    func (o *ServerInfo) GetFileNeeded() []FileNeededInner
    func (o *ServerInfo) GetFileNeededNum() float32
    func (o *ServerInfo) GetFileNeededNumOk() (*float32, bool)
    func (o *ServerInfo) GetFileNeededOk() ([]FileNeededInner, bool)
    func (o *ServerInfo) GetGameType() float32
    func (o *ServerInfo) GetGameTypeOk() (*float32, bool)
    func (o *ServerInfo) GetHttpSource() string
    func (o *ServerInfo) GetHttpSourceOk() (*string, bool)
    func (o *ServerInfo) GetIsZone() bool
    func (o *ServerInfo) GetIsZoneOk() (*bool, bool)
    func (o *ServerInfo) GetKartVars() float32
    func (o *ServerInfo) GetKartVarsOk() (*float32, bool)
    func (o *ServerInfo) GetLevelTime() float32
    func (o *ServerInfo) GetLevelTimeOk() (*float32, bool)
    func (o *ServerInfo) GetMapMD5() []float32
    func (o *ServerInfo) GetMapMD5Ok() ([]float32, bool)
    func (o *ServerInfo) GetMapName() string
    func (o *ServerInfo) GetMapNameOk() (*string, bool)
    func (o *ServerInfo) GetMapTitle() string
    func (o *ServerInfo) GetMapTitleOk() (*string, bool)
    func (o *ServerInfo) GetMaxPlayers() float32
    func (o *ServerInfo) GetMaxPlayersOk() (*float32, bool)
    func (o *ServerInfo) GetModifiedGame() bool
    func (o *ServerInfo) GetModifiedGameOk() (*bool, bool)
    func (o *ServerInfo) GetNumberOfPlayer() float32
    func (o *ServerInfo) GetNumberOfPlayerOk() (*float32, bool)
    func (o *ServerInfo) GetPacketVersion() float32
    func (o *ServerInfo) GetPacketVersionOk() (*float32, bool)
    func (o *ServerInfo) GetServerName() string
    func (o *ServerInfo) GetServerNameOk() (*string, bool)
    func (o *ServerInfo) GetServerNameRaw() string
    func (o *ServerInfo) GetServerNameRawOk() (*string, bool)
    func (o *ServerInfo) GetSubVersion() float32
    func (o *ServerInfo) GetSubVersionOk() (*float32, bool)
    func (o *ServerInfo) GetTime() float32
    func (o *ServerInfo) GetTimeOk() (*float32, bool)
    func (o *ServerInfo) GetVersion() float32
    func (o *ServerInfo) GetVersionOk() (*float32, bool)
    func (o *ServerInfo) HasActNum() bool
    func (o *ServerInfo) HasApplication() bool
    func (o *ServerInfo) HasCheatsEnabled() bool
    func (o *ServerInfo) HasFileNeeded() bool
    func (o *ServerInfo) HasFileNeededNum() bool
    func (o *ServerInfo) HasGameType() bool
    func (o *ServerInfo) HasHttpSource() bool
    func (o *ServerInfo) HasIsZone() bool
    func (o *ServerInfo) HasKartVars() bool
    func (o *ServerInfo) HasLevelTime() bool
    func (o *ServerInfo) HasMapMD5() bool
    func (o *ServerInfo) HasMapName() bool
    func (o *ServerInfo) HasMapTitle() bool
    func (o *ServerInfo) HasMaxPlayers() bool
    func (o *ServerInfo) HasModifiedGame() bool
    func (o *ServerInfo) HasNumberOfPlayer() bool
    func (o *ServerInfo) HasPacketVersion() bool
    func (o *ServerInfo) HasServerName() bool
    func (o *ServerInfo) HasServerNameRaw() bool
    func (o *ServerInfo) HasSubVersion() bool
    func (o *ServerInfo) HasTime() bool
    func (o *ServerInfo) HasVersion() bool
    func (o ServerInfo) MarshalJSON() ([]byte, error)
    func (o *ServerInfo) SetActNum(v float32)
    func (o *ServerInfo) SetApplication(v string)
    func (o *ServerInfo) SetCheatsEnabled(v bool)
    func (o *ServerInfo) SetFileNeeded(v []FileNeededInner)
    func (o *ServerInfo) SetFileNeededNum(v float32)
    func (o *ServerInfo) SetGameType(v float32)
    func (o *ServerInfo) SetHttpSource(v string)
    func (o *ServerInfo) SetIsZone(v bool)
    func (o *ServerInfo) SetKartVars(v float32)
    func (o *ServerInfo) SetLevelTime(v float32)
    func (o *ServerInfo) SetMapMD5(v []float32)
    func (o *ServerInfo) SetMapName(v string)
    func (o *ServerInfo) SetMapTitle(v string)
    func (o *ServerInfo) SetMaxPlayers(v float32)
    func (o *ServerInfo) SetModifiedGame(v bool)
    func (o *ServerInfo) SetNumberOfPlayer(v float32)
    func (o *ServerInfo) SetPacketVersion(v float32)
    func (o *ServerInfo) SetServerName(v string)
    func (o *ServerInfo) SetServerNameRaw(v string)
    func (o *ServerInfo) SetSubVersion(v float32)
    func (o *ServerInfo) SetTime(v float32)
    func (o *ServerInfo) SetVersion(v float32)
type ServerVariable

Package files

api_default.go client.go configuration.go model_file_needed_inner.go model_player_info.go model_player_info_entry.go model_server_info.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 Translator service between a srb2kart server and json 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 ApiFilesGetRequest

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

func (ApiFilesGetRequest) Execute

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

type ApiPlayerinfoGetRequest

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

func (ApiPlayerinfoGetRequest) Execute

func (r ApiPlayerinfoGetRequest) Execute() ([]PlayerInfoEntry, *http.Response, error)

type ApiServerinfoGetRequest

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

func (ApiServerinfoGetRequest) Execute

func (r ApiServerinfoGetRequest) Execute() (*ServerInfo, *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) FilesGet

func (a *DefaultApiService) FilesGet(ctx context.Context) ApiFilesGetRequest

FilesGet get the installed files

Returns the PT_TELLFILESNEEDED data from the server containing information about the installed mods

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

func (*DefaultApiService) FilesGetExecute

func (a *DefaultApiService) FilesGetExecute(r ApiFilesGetRequest) ([]string, *http.Response, error)

Execute executes the request

@return []string

func (*DefaultApiService) PlayerinfoGet

func (a *DefaultApiService) PlayerinfoGet(ctx context.Context) ApiPlayerinfoGetRequest

PlayerinfoGet get the player infomation

Returns the PT_PLAYERINFO data from the server containing information about the current players

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

func (*DefaultApiService) PlayerinfoGetExecute

func (a *DefaultApiService) PlayerinfoGetExecute(r ApiPlayerinfoGetRequest) ([]PlayerInfoEntry, *http.Response, error)

Execute executes the request

@return []PlayerInfoEntry

func (*DefaultApiService) ServerinfoGet

func (a *DefaultApiService) ServerinfoGet(ctx context.Context) ApiServerinfoGetRequest

ServerinfoGet get the server information

Returns the PT_SERVERINFO data from the server containing information about the state of the server

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

func (*DefaultApiService) ServerinfoGetExecute

func (a *DefaultApiService) ServerinfoGetExecute(r ApiServerinfoGetRequest) (*ServerInfo, *http.Response, error)

Execute executes the request

@return ServerInfo

type FileNeededInner

FileNeededInner struct for FileNeededInner

type FileNeededInner struct {
    WillSend  *bool     `json:"WillSend,omitempty"`
    TotalSize *float32  `json:"TotalSize,omitempty"`
    FileName  *string   `json:"FileName,omitempty"`
    MD5       []float32 `json:"MD5,omitempty"`
}

func NewFileNeededInner

func NewFileNeededInner() *FileNeededInner

NewFileNeededInner instantiates a new FileNeededInner 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 NewFileNeededInnerWithDefaults

func NewFileNeededInnerWithDefaults() *FileNeededInner

NewFileNeededInnerWithDefaults instantiates a new FileNeededInner 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 (*FileNeededInner) GetFileName

func (o *FileNeededInner) GetFileName() string

GetFileName returns the FileName field value if set, zero value otherwise.

func (*FileNeededInner) GetFileNameOk

func (o *FileNeededInner) GetFileNameOk() (*string, bool)

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

func (*FileNeededInner) GetMD5

func (o *FileNeededInner) GetMD5() []float32

GetMD5 returns the MD5 field value if set, zero value otherwise.

func (*FileNeededInner) GetMD5Ok

func (o *FileNeededInner) GetMD5Ok() ([]float32, bool)

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

func (*FileNeededInner) GetTotalSize

func (o *FileNeededInner) GetTotalSize() float32

GetTotalSize returns the TotalSize field value if set, zero value otherwise.

func (*FileNeededInner) GetTotalSizeOk

func (o *FileNeededInner) GetTotalSizeOk() (*float32, bool)

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

func (*FileNeededInner) GetWillSend

func (o *FileNeededInner) GetWillSend() bool

GetWillSend returns the WillSend field value if set, zero value otherwise.

func (*FileNeededInner) GetWillSendOk

func (o *FileNeededInner) GetWillSendOk() (*bool, bool)

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

func (*FileNeededInner) HasFileName

func (o *FileNeededInner) HasFileName() bool

HasFileName returns a boolean if a field has been set.

func (*FileNeededInner) HasMD5

func (o *FileNeededInner) HasMD5() bool

HasMD5 returns a boolean if a field has been set.

func (*FileNeededInner) HasTotalSize

func (o *FileNeededInner) HasTotalSize() bool

HasTotalSize returns a boolean if a field has been set.

func (*FileNeededInner) HasWillSend

func (o *FileNeededInner) HasWillSend() bool

HasWillSend returns a boolean if a field has been set.

func (FileNeededInner) MarshalJSON

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

func (*FileNeededInner) SetFileName

func (o *FileNeededInner) SetFileName(v string)

SetFileName gets a reference to the given string and assigns it to the FileName field.

func (*FileNeededInner) SetMD5

func (o *FileNeededInner) SetMD5(v []float32)

SetMD5 gets a reference to the given []float32 and assigns it to the MD5 field.

func (*FileNeededInner) SetTotalSize

func (o *FileNeededInner) SetTotalSize(v float32)

SetTotalSize gets a reference to the given float32 and assigns it to the TotalSize field.

func (*FileNeededInner) SetWillSend

func (o *FileNeededInner) SetWillSend(v bool)

SetWillSend gets a reference to the given bool and assigns it to the WillSend field.

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 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 NullableFileNeededInner

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

func NewNullableFileNeededInner

func NewNullableFileNeededInner(val *FileNeededInner) *NullableFileNeededInner

func (NullableFileNeededInner) Get

func (v NullableFileNeededInner) Get() *FileNeededInner

func (NullableFileNeededInner) IsSet

func (v NullableFileNeededInner) IsSet() bool

func (NullableFileNeededInner) MarshalJSON

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

func (*NullableFileNeededInner) Set

func (v *NullableFileNeededInner) Set(val *FileNeededInner)

func (*NullableFileNeededInner) UnmarshalJSON

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

func (*NullableFileNeededInner) Unset

func (v *NullableFileNeededInner) 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 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 NullablePlayerInfo

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

func NewNullablePlayerInfo

func NewNullablePlayerInfo(val *PlayerInfo) *NullablePlayerInfo

func (NullablePlayerInfo) Get

func (v NullablePlayerInfo) Get() *PlayerInfo

func (NullablePlayerInfo) IsSet

func (v NullablePlayerInfo) IsSet() bool

func (NullablePlayerInfo) MarshalJSON

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

func (*NullablePlayerInfo) Set

func (v *NullablePlayerInfo) Set(val *PlayerInfo)

func (*NullablePlayerInfo) UnmarshalJSON

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

func (*NullablePlayerInfo) Unset

func (v *NullablePlayerInfo) Unset()

type NullablePlayerInfoEntry

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

func NewNullablePlayerInfoEntry

func NewNullablePlayerInfoEntry(val *PlayerInfoEntry) *NullablePlayerInfoEntry

func (NullablePlayerInfoEntry) Get

func (v NullablePlayerInfoEntry) Get() *PlayerInfoEntry

func (NullablePlayerInfoEntry) IsSet

func (v NullablePlayerInfoEntry) IsSet() bool

func (NullablePlayerInfoEntry) MarshalJSON

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

func (*NullablePlayerInfoEntry) Set

func (v *NullablePlayerInfoEntry) Set(val *PlayerInfoEntry)

func (*NullablePlayerInfoEntry) UnmarshalJSON

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

func (*NullablePlayerInfoEntry) Unset

func (v *NullablePlayerInfoEntry) Unset()

type NullableServerInfo

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

func NewNullableServerInfo

func NewNullableServerInfo(val *ServerInfo) *NullableServerInfo

func (NullableServerInfo) Get

func (v NullableServerInfo) Get() *ServerInfo

func (NullableServerInfo) IsSet

func (v NullableServerInfo) IsSet() bool

func (NullableServerInfo) MarshalJSON

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

func (*NullableServerInfo) Set

func (v *NullableServerInfo) Set(val *ServerInfo)

func (*NullableServerInfo) UnmarshalJSON

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

func (*NullableServerInfo) Unset

func (v *NullableServerInfo) 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 PlayerInfo

PlayerInfo struct for PlayerInfo

type PlayerInfo struct {
    PlayerInfo []PlayerInfoEntry `json:"PlayerInfo,omitempty"`
}

func NewPlayerInfo

func NewPlayerInfo() *PlayerInfo

NewPlayerInfo instantiates a new PlayerInfo 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 NewPlayerInfoWithDefaults

func NewPlayerInfoWithDefaults() *PlayerInfo

NewPlayerInfoWithDefaults instantiates a new PlayerInfo 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 (*PlayerInfo) GetPlayerInfo

func (o *PlayerInfo) GetPlayerInfo() []PlayerInfoEntry

GetPlayerInfo returns the PlayerInfo field value if set, zero value otherwise.

func (*PlayerInfo) GetPlayerInfoOk

func (o *PlayerInfo) GetPlayerInfoOk() ([]PlayerInfoEntry, bool)

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

func (*PlayerInfo) HasPlayerInfo

func (o *PlayerInfo) HasPlayerInfo() bool

HasPlayerInfo returns a boolean if a field has been set.

func (PlayerInfo) MarshalJSON

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

func (*PlayerInfo) SetPlayerInfo

func (o *PlayerInfo) SetPlayerInfo(v []PlayerInfoEntry)

SetPlayerInfo gets a reference to the given []PlayerInfoEntry and assigns it to the PlayerInfo field.

type PlayerInfoEntry

PlayerInfoEntry struct for PlayerInfoEntry

type PlayerInfoEntry struct {
    Node         *float32 `json:"Node,omitempty"`
    Name         *string  `json:"Name,omitempty"`
    Address      *string  `json:"Address,omitempty"`
    Team         *float32 `json:"Team,omitempty"`
    Skin         *float32 `json:"Skin,omitempty"`
    Data         *float32 `json:"Data,omitempty"`
    Score        *float32 `json:"Score,omitempty"`
    TimeInServer *float32 `json:"TimeInServer,omitempty"`
}

func NewPlayerInfoEntry

func NewPlayerInfoEntry() *PlayerInfoEntry

NewPlayerInfoEntry instantiates a new PlayerInfoEntry 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 NewPlayerInfoEntryWithDefaults

func NewPlayerInfoEntryWithDefaults() *PlayerInfoEntry

NewPlayerInfoEntryWithDefaults instantiates a new PlayerInfoEntry 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 (*PlayerInfoEntry) GetAddress

func (o *PlayerInfoEntry) GetAddress() string

GetAddress returns the Address field value if set, zero value otherwise.

func (*PlayerInfoEntry) GetAddressOk

func (o *PlayerInfoEntry) GetAddressOk() (*string, bool)

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

func (*PlayerInfoEntry) GetData

func (o *PlayerInfoEntry) GetData() float32

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

func (*PlayerInfoEntry) GetDataOk

func (o *PlayerInfoEntry) GetDataOk() (*float32, 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 (*PlayerInfoEntry) GetName

func (o *PlayerInfoEntry) GetName() string

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

func (*PlayerInfoEntry) GetNameOk

func (o *PlayerInfoEntry) 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 (*PlayerInfoEntry) GetNode

func (o *PlayerInfoEntry) GetNode() float32

GetNode returns the Node field value if set, zero value otherwise.

func (*PlayerInfoEntry) GetNodeOk

func (o *PlayerInfoEntry) GetNodeOk() (*float32, bool)

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

func (*PlayerInfoEntry) GetScore

func (o *PlayerInfoEntry) GetScore() float32

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

func (*PlayerInfoEntry) GetScoreOk

func (o *PlayerInfoEntry) 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 (*PlayerInfoEntry) GetSkin

func (o *PlayerInfoEntry) GetSkin() float32

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

func (*PlayerInfoEntry) GetSkinOk

func (o *PlayerInfoEntry) GetSkinOk() (*float32, 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 (*PlayerInfoEntry) GetTeam

func (o *PlayerInfoEntry) GetTeam() float32

GetTeam returns the Team field value if set, zero value otherwise.

func (*PlayerInfoEntry) GetTeamOk

func (o *PlayerInfoEntry) GetTeamOk() (*float32, bool)

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

func (*PlayerInfoEntry) GetTimeInServer

func (o *PlayerInfoEntry) GetTimeInServer() float32

GetTimeInServer returns the TimeInServer field value if set, zero value otherwise.

func (*PlayerInfoEntry) GetTimeInServerOk

func (o *PlayerInfoEntry) GetTimeInServerOk() (*float32, bool)

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

func (*PlayerInfoEntry) HasAddress

func (o *PlayerInfoEntry) HasAddress() bool

HasAddress returns a boolean if a field has been set.

func (*PlayerInfoEntry) HasData

func (o *PlayerInfoEntry) HasData() bool

HasData returns a boolean if a field has been set.

func (*PlayerInfoEntry) HasName

func (o *PlayerInfoEntry) HasName() bool

HasName returns a boolean if a field has been set.

func (*PlayerInfoEntry) HasNode

func (o *PlayerInfoEntry) HasNode() bool

HasNode returns a boolean if a field has been set.

func (*PlayerInfoEntry) HasScore

func (o *PlayerInfoEntry) HasScore() bool

HasScore returns a boolean if a field has been set.

func (*PlayerInfoEntry) HasSkin

func (o *PlayerInfoEntry) HasSkin() bool

HasSkin returns a boolean if a field has been set.

func (*PlayerInfoEntry) HasTeam

func (o *PlayerInfoEntry) HasTeam() bool

HasTeam returns a boolean if a field has been set.

func (*PlayerInfoEntry) HasTimeInServer

func (o *PlayerInfoEntry) HasTimeInServer() bool

HasTimeInServer returns a boolean if a field has been set.

func (PlayerInfoEntry) MarshalJSON

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

func (*PlayerInfoEntry) SetAddress

func (o *PlayerInfoEntry) SetAddress(v string)

SetAddress gets a reference to the given string and assigns it to the Address field.

func (*PlayerInfoEntry) SetData

func (o *PlayerInfoEntry) SetData(v float32)

SetData gets a reference to the given float32 and assigns it to the Data field.

func (*PlayerInfoEntry) SetName

func (o *PlayerInfoEntry) SetName(v string)

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

func (*PlayerInfoEntry) SetNode

func (o *PlayerInfoEntry) SetNode(v float32)

SetNode gets a reference to the given float32 and assigns it to the Node field.

func (*PlayerInfoEntry) SetScore

func (o *PlayerInfoEntry) SetScore(v float32)

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

func (*PlayerInfoEntry) SetSkin

func (o *PlayerInfoEntry) SetSkin(v float32)

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

func (*PlayerInfoEntry) SetTeam

func (o *PlayerInfoEntry) SetTeam(v float32)

SetTeam gets a reference to the given float32 and assigns it to the Team field.

func (*PlayerInfoEntry) SetTimeInServer

func (o *PlayerInfoEntry) SetTimeInServer(v float32)

SetTimeInServer gets a reference to the given float32 and assigns it to the TimeInServer 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 ServerInfo

ServerInfo struct for ServerInfo

type ServerInfo struct {
    PacketVersion  *float32          `json:"PacketVersion,omitempty"`
    Application    *string           `json:"Application,omitempty"`
    Version        *float32          `json:"Version,omitempty"`
    SubVersion     *float32          `json:"SubVersion,omitempty"`
    NumberOfPlayer *float32          `json:"NumberOfPlayer,omitempty"`
    MaxPlayers     *float32          `json:"MaxPlayers,omitempty"`
    GameType       *float32          `json:"GameType,omitempty"`
    ModifiedGame   *bool             `json:"ModifiedGame,omitempty"`
    CheatsEnabled  *bool             `json:"CheatsEnabled,omitempty"`
    KartVars       *float32          `json:"KartVars,omitempty"`
    FileNeededNum  *float32          `json:"FileNeededNum,omitempty"`
    Time           *float32          `json:"Time,omitempty"`
    LevelTime      *float32          `json:"LevelTime,omitempty"`
    ServerNameRaw  *string           `json:"ServerNameRaw,omitempty"`
    ServerName     *string           `json:"ServerName,omitempty"`
    MapName        *string           `json:"MapName,omitempty"`
    MapTitle       *string           `json:"MapTitle,omitempty"`
    MapMD5         []float32         `json:"MapMD5,omitempty"`
    ActNum         *float32          `json:"ActNum,omitempty"`
    IsZone         *bool             `json:"IsZone,omitempty"`
    HttpSource     *string           `json:"HttpSource,omitempty"`
    FileNeeded     []FileNeededInner `json:"FileNeeded,omitempty"`
}

func NewServerInfo

func NewServerInfo() *ServerInfo

NewServerInfo instantiates a new ServerInfo 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 NewServerInfoWithDefaults

func NewServerInfoWithDefaults() *ServerInfo

NewServerInfoWithDefaults instantiates a new ServerInfo 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 (*ServerInfo) GetActNum

func (o *ServerInfo) GetActNum() float32

GetActNum returns the ActNum field value if set, zero value otherwise.

func (*ServerInfo) GetActNumOk

func (o *ServerInfo) GetActNumOk() (*float32, bool)

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

func (*ServerInfo) GetApplication

func (o *ServerInfo) GetApplication() string

GetApplication returns the Application field value if set, zero value otherwise.

func (*ServerInfo) GetApplicationOk

func (o *ServerInfo) GetApplicationOk() (*string, bool)

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

func (*ServerInfo) GetCheatsEnabled

func (o *ServerInfo) GetCheatsEnabled() bool

GetCheatsEnabled returns the CheatsEnabled field value if set, zero value otherwise.

func (*ServerInfo) GetCheatsEnabledOk

func (o *ServerInfo) GetCheatsEnabledOk() (*bool, bool)

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

func (*ServerInfo) GetFileNeeded

func (o *ServerInfo) GetFileNeeded() []FileNeededInner

GetFileNeeded returns the FileNeeded field value if set, zero value otherwise.

func (*ServerInfo) GetFileNeededNum

func (o *ServerInfo) GetFileNeededNum() float32

GetFileNeededNum returns the FileNeededNum field value if set, zero value otherwise.

func (*ServerInfo) GetFileNeededNumOk

func (o *ServerInfo) GetFileNeededNumOk() (*float32, bool)

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

func (*ServerInfo) GetFileNeededOk

func (o *ServerInfo) GetFileNeededOk() ([]FileNeededInner, bool)

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

func (*ServerInfo) GetGameType

func (o *ServerInfo) GetGameType() float32

GetGameType returns the GameType field value if set, zero value otherwise.

func (*ServerInfo) GetGameTypeOk

func (o *ServerInfo) GetGameTypeOk() (*float32, bool)

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

func (*ServerInfo) GetHttpSource

func (o *ServerInfo) GetHttpSource() string

GetHttpSource returns the HttpSource field value if set, zero value otherwise.

func (*ServerInfo) GetHttpSourceOk

func (o *ServerInfo) GetHttpSourceOk() (*string, bool)

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

func (*ServerInfo) GetIsZone

func (o *ServerInfo) GetIsZone() bool

GetIsZone returns the IsZone field value if set, zero value otherwise.

func (*ServerInfo) GetIsZoneOk

func (o *ServerInfo) GetIsZoneOk() (*bool, bool)

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

func (*ServerInfo) GetKartVars

func (o *ServerInfo) GetKartVars() float32

GetKartVars returns the KartVars field value if set, zero value otherwise.

func (*ServerInfo) GetKartVarsOk

func (o *ServerInfo) GetKartVarsOk() (*float32, bool)

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

func (*ServerInfo) GetLevelTime

func (o *ServerInfo) GetLevelTime() float32

GetLevelTime returns the LevelTime field value if set, zero value otherwise.

func (*ServerInfo) GetLevelTimeOk

func (o *ServerInfo) GetLevelTimeOk() (*float32, bool)

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

func (*ServerInfo) GetMapMD5

func (o *ServerInfo) GetMapMD5() []float32

GetMapMD5 returns the MapMD5 field value if set, zero value otherwise.

func (*ServerInfo) GetMapMD5Ok

func (o *ServerInfo) GetMapMD5Ok() ([]float32, bool)

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

func (*ServerInfo) GetMapName

func (o *ServerInfo) GetMapName() string

GetMapName returns the MapName field value if set, zero value otherwise.

func (*ServerInfo) GetMapNameOk

func (o *ServerInfo) GetMapNameOk() (*string, bool)

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

func (*ServerInfo) GetMapTitle

func (o *ServerInfo) GetMapTitle() string

GetMapTitle returns the MapTitle field value if set, zero value otherwise.

func (*ServerInfo) GetMapTitleOk

func (o *ServerInfo) GetMapTitleOk() (*string, bool)

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

func (*ServerInfo) GetMaxPlayers

func (o *ServerInfo) GetMaxPlayers() float32

GetMaxPlayers returns the MaxPlayers field value if set, zero value otherwise.

func (*ServerInfo) GetMaxPlayersOk

func (o *ServerInfo) GetMaxPlayersOk() (*float32, bool)

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

func (*ServerInfo) GetModifiedGame

func (o *ServerInfo) GetModifiedGame() bool

GetModifiedGame returns the ModifiedGame field value if set, zero value otherwise.

func (*ServerInfo) GetModifiedGameOk

func (o *ServerInfo) GetModifiedGameOk() (*bool, bool)

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

func (*ServerInfo) GetNumberOfPlayer

func (o *ServerInfo) GetNumberOfPlayer() float32

GetNumberOfPlayer returns the NumberOfPlayer field value if set, zero value otherwise.

func (*ServerInfo) GetNumberOfPlayerOk

func (o *ServerInfo) GetNumberOfPlayerOk() (*float32, bool)

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

func (*ServerInfo) GetPacketVersion

func (o *ServerInfo) GetPacketVersion() float32

GetPacketVersion returns the PacketVersion field value if set, zero value otherwise.

func (*ServerInfo) GetPacketVersionOk

func (o *ServerInfo) GetPacketVersionOk() (*float32, bool)

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

func (*ServerInfo) GetServerName

func (o *ServerInfo) GetServerName() string

GetServerName returns the ServerName field value if set, zero value otherwise.

func (*ServerInfo) GetServerNameOk

func (o *ServerInfo) GetServerNameOk() (*string, bool)

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

func (*ServerInfo) GetServerNameRaw

func (o *ServerInfo) GetServerNameRaw() string

GetServerNameRaw returns the ServerNameRaw field value if set, zero value otherwise.

func (*ServerInfo) GetServerNameRawOk

func (o *ServerInfo) GetServerNameRawOk() (*string, bool)

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

func (*ServerInfo) GetSubVersion

func (o *ServerInfo) GetSubVersion() float32

GetSubVersion returns the SubVersion field value if set, zero value otherwise.

func (*ServerInfo) GetSubVersionOk

func (o *ServerInfo) GetSubVersionOk() (*float32, bool)

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

func (*ServerInfo) GetTime

func (o *ServerInfo) GetTime() float32

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

func (*ServerInfo) GetTimeOk

func (o *ServerInfo) 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 (*ServerInfo) GetVersion

func (o *ServerInfo) GetVersion() float32

GetVersion returns the Version field value if set, zero value otherwise.

func (*ServerInfo) GetVersionOk

func (o *ServerInfo) GetVersionOk() (*float32, bool)

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

func (*ServerInfo) HasActNum

func (o *ServerInfo) HasActNum() bool

HasActNum returns a boolean if a field has been set.

func (*ServerInfo) HasApplication

func (o *ServerInfo) HasApplication() bool

HasApplication returns a boolean if a field has been set.

func (*ServerInfo) HasCheatsEnabled

func (o *ServerInfo) HasCheatsEnabled() bool

HasCheatsEnabled returns a boolean if a field has been set.

func (*ServerInfo) HasFileNeeded

func (o *ServerInfo) HasFileNeeded() bool

HasFileNeeded returns a boolean if a field has been set.

func (*ServerInfo) HasFileNeededNum

func (o *ServerInfo) HasFileNeededNum() bool

HasFileNeededNum returns a boolean if a field has been set.

func (*ServerInfo) HasGameType

func (o *ServerInfo) HasGameType() bool

HasGameType returns a boolean if a field has been set.

func (*ServerInfo) HasHttpSource

func (o *ServerInfo) HasHttpSource() bool

HasHttpSource returns a boolean if a field has been set.

func (*ServerInfo) HasIsZone

func (o *ServerInfo) HasIsZone() bool

HasIsZone returns a boolean if a field has been set.

func (*ServerInfo) HasKartVars

func (o *ServerInfo) HasKartVars() bool

HasKartVars returns a boolean if a field has been set.

func (*ServerInfo) HasLevelTime

func (o *ServerInfo) HasLevelTime() bool

HasLevelTime returns a boolean if a field has been set.

func (*ServerInfo) HasMapMD5

func (o *ServerInfo) HasMapMD5() bool

HasMapMD5 returns a boolean if a field has been set.

func (*ServerInfo) HasMapName

func (o *ServerInfo) HasMapName() bool

HasMapName returns a boolean if a field has been set.

func (*ServerInfo) HasMapTitle

func (o *ServerInfo) HasMapTitle() bool

HasMapTitle returns a boolean if a field has been set.

func (*ServerInfo) HasMaxPlayers

func (o *ServerInfo) HasMaxPlayers() bool

HasMaxPlayers returns a boolean if a field has been set.

func (*ServerInfo) HasModifiedGame

func (o *ServerInfo) HasModifiedGame() bool

HasModifiedGame returns a boolean if a field has been set.

func (*ServerInfo) HasNumberOfPlayer

func (o *ServerInfo) HasNumberOfPlayer() bool

HasNumberOfPlayer returns a boolean if a field has been set.

func (*ServerInfo) HasPacketVersion

func (o *ServerInfo) HasPacketVersion() bool

HasPacketVersion returns a boolean if a field has been set.

func (*ServerInfo) HasServerName

func (o *ServerInfo) HasServerName() bool

HasServerName returns a boolean if a field has been set.

func (*ServerInfo) HasServerNameRaw

func (o *ServerInfo) HasServerNameRaw() bool

HasServerNameRaw returns a boolean if a field has been set.

func (*ServerInfo) HasSubVersion

func (o *ServerInfo) HasSubVersion() bool

HasSubVersion returns a boolean if a field has been set.

func (*ServerInfo) HasTime

func (o *ServerInfo) HasTime() bool

HasTime returns a boolean if a field has been set.

func (*ServerInfo) HasVersion

func (o *ServerInfo) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (ServerInfo) MarshalJSON

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

func (*ServerInfo) SetActNum

func (o *ServerInfo) SetActNum(v float32)

SetActNum gets a reference to the given float32 and assigns it to the ActNum field.

func (*ServerInfo) SetApplication

func (o *ServerInfo) SetApplication(v string)

SetApplication gets a reference to the given string and assigns it to the Application field.

func (*ServerInfo) SetCheatsEnabled

func (o *ServerInfo) SetCheatsEnabled(v bool)

SetCheatsEnabled gets a reference to the given bool and assigns it to the CheatsEnabled field.

func (*ServerInfo) SetFileNeeded

func (o *ServerInfo) SetFileNeeded(v []FileNeededInner)

SetFileNeeded gets a reference to the given []FileNeededInner and assigns it to the FileNeeded field.

func (*ServerInfo) SetFileNeededNum

func (o *ServerInfo) SetFileNeededNum(v float32)

SetFileNeededNum gets a reference to the given float32 and assigns it to the FileNeededNum field.

func (*ServerInfo) SetGameType

func (o *ServerInfo) SetGameType(v float32)

SetGameType gets a reference to the given float32 and assigns it to the GameType field.

func (*ServerInfo) SetHttpSource

func (o *ServerInfo) SetHttpSource(v string)

SetHttpSource gets a reference to the given string and assigns it to the HttpSource field.

func (*ServerInfo) SetIsZone

func (o *ServerInfo) SetIsZone(v bool)

SetIsZone gets a reference to the given bool and assigns it to the IsZone field.

func (*ServerInfo) SetKartVars

func (o *ServerInfo) SetKartVars(v float32)

SetKartVars gets a reference to the given float32 and assigns it to the KartVars field.

func (*ServerInfo) SetLevelTime

func (o *ServerInfo) SetLevelTime(v float32)

SetLevelTime gets a reference to the given float32 and assigns it to the LevelTime field.

func (*ServerInfo) SetMapMD5

func (o *ServerInfo) SetMapMD5(v []float32)

SetMapMD5 gets a reference to the given []float32 and assigns it to the MapMD5 field.

func (*ServerInfo) SetMapName

func (o *ServerInfo) SetMapName(v string)

SetMapName gets a reference to the given string and assigns it to the MapName field.

func (*ServerInfo) SetMapTitle

func (o *ServerInfo) SetMapTitle(v string)

SetMapTitle gets a reference to the given string and assigns it to the MapTitle field.

func (*ServerInfo) SetMaxPlayers

func (o *ServerInfo) SetMaxPlayers(v float32)

SetMaxPlayers gets a reference to the given float32 and assigns it to the MaxPlayers field.

func (*ServerInfo) SetModifiedGame

func (o *ServerInfo) SetModifiedGame(v bool)

SetModifiedGame gets a reference to the given bool and assigns it to the ModifiedGame field.

func (*ServerInfo) SetNumberOfPlayer

func (o *ServerInfo) SetNumberOfPlayer(v float32)

SetNumberOfPlayer gets a reference to the given float32 and assigns it to the NumberOfPlayer field.

func (*ServerInfo) SetPacketVersion

func (o *ServerInfo) SetPacketVersion(v float32)

SetPacketVersion gets a reference to the given float32 and assigns it to the PacketVersion field.

func (*ServerInfo) SetServerName

func (o *ServerInfo) SetServerName(v string)

SetServerName gets a reference to the given string and assigns it to the ServerName field.

func (*ServerInfo) SetServerNameRaw

func (o *ServerInfo) SetServerNameRaw(v string)

SetServerNameRaw gets a reference to the given string and assigns it to the ServerNameRaw field.

func (*ServerInfo) SetSubVersion

func (o *ServerInfo) SetSubVersion(v float32)

SetSubVersion gets a reference to the given float32 and assigns it to the SubVersion field.

func (*ServerInfo) SetTime

func (o *ServerInfo) SetTime(v float32)

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

func (*ServerInfo) SetVersion

func (o *ServerInfo) SetVersion(v float32)

SetVersion gets a reference to the given float32 and assigns it to the Version field.

type ServerVariable

ServerVariable stores the information about a server variable

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