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(r *http.Response) time.Time
CacheExpires helper function to determine remaining time before repeating a request.
func PtrBool(v bool) *bool
PtrBool is a helper routine that returns a pointer to given boolean value.
func PtrFloat32(v float32) *float32
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64(v float64) *float64
PtrFloat64 is a helper routine that returns a pointer to given float value.
func PtrInt(v int) *int
PtrInt is a helper routine that returns a pointer to given integer value.
func PtrInt32(v int32) *int32
PtrInt32 is a helper routine that returns a pointer to given integer value.
func PtrInt64(v int64) *int64
PtrInt64 is a helper routine that returns a pointer to given integer value.
func PtrString(v string) *string
PtrString is a helper routine that returns a pointer to given string value.
func PtrTime(v time.Time) *time.Time
PtrTime is helper routine that returns a pointer to given Time value.
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(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 (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
APIKey provides API key based authentication to a request passed via context using ContextAPIKey
type APIKey struct { Key string Prefix string }
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(r *http.Response) *APIResponse
NewAPIResponse returns a new APIResponse object.
func NewAPIResponseWithError(errorMessage string) *APIResponse
NewAPIResponseWithError returns a new APIResponse object with the provided error message.
type ApiPlayerinfoGetRequest struct { ApiService *DefaultApiService // contains filtered or unexported fields }
func (r ApiPlayerinfoGetRequest) Execute() (*PlayerInfo, *http.Response, error)
type ApiServerinfoGetRequest struct { ApiService *DefaultApiService // contains filtered or unexported fields }
func (r ApiServerinfoGetRequest) Execute() (*ServerInfo, *http.Response, error)
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"` }
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() *Configuration
NewConfiguration returns a new Configuration object
func (c *Configuration) AddDefaultHeader(key string, value string)
AddDefaultHeader adds a new HTTP header to the default header in the request
func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)
ServerURL returns URL based on server settings
func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)
ServerURLWithContext returns a new server URL given an endpoint
DefaultApiService DefaultApi service
type DefaultApiService service
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 (a *DefaultApiService) PlayerinfoGetExecute(r ApiPlayerinfoGetRequest) (*PlayerInfo, *http.Response, error)
Execute executes the request
@return PlayerInfo
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 (a *DefaultApiService) ServerinfoGetExecute(r ApiServerinfoGetRequest) (*ServerInfo, *http.Response, error)
Execute executes the request
@return ServerInfo
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() *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() *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 (o *FileNeededInner) GetFileName() string
GetFileName returns the FileName field value if set, zero value otherwise.
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 (o *FileNeededInner) GetMD5() []float32
GetMD5 returns the MD5 field value if set, zero value otherwise.
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 (o *FileNeededInner) GetTotalSize() float32
GetTotalSize returns the TotalSize field value if set, zero value otherwise.
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 (o *FileNeededInner) GetWillSend() bool
GetWillSend returns the WillSend field value if set, zero value otherwise.
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 (o *FileNeededInner) HasFileName() bool
HasFileName returns a boolean if a field has been set.
func (o *FileNeededInner) HasMD5() bool
HasMD5 returns a boolean if a field has been set.
func (o *FileNeededInner) HasTotalSize() bool
HasTotalSize returns a boolean if a field has been set.
func (o *FileNeededInner) HasWillSend() bool
HasWillSend returns a boolean if a field has been set.
func (o FileNeededInner) MarshalJSON() ([]byte, error)
func (o *FileNeededInner) SetFileName(v string)
SetFileName gets a reference to the given string and assigns it to the FileName field.
func (o *FileNeededInner) SetMD5(v []float32)
SetMD5 gets a reference to the given []float32 and assigns it to the MD5 field.
func (o *FileNeededInner) SetTotalSize(v float32)
SetTotalSize gets a reference to the given float32 and assigns it to the TotalSize field.
func (o *FileNeededInner) SetWillSend(v bool)
SetWillSend gets a reference to the given bool and assigns it to the WillSend field.
GenericOpenAPIError Provides access to the body, error and model on returned errors.
type GenericOpenAPIError struct {
// contains filtered or unexported fields
}
func (e GenericOpenAPIError) Body() []byte
Body returns the raw bytes of the response
func (e GenericOpenAPIError) Error() string
Error returns non-empty string if there was an error.
func (e GenericOpenAPIError) Model() interface{}
Model returns the unpacked model of the error
type NullableBool struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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 struct {
// contains filtered or unexported fields
}
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()
PlayerInfo struct for PlayerInfo
type PlayerInfo struct { PlayerInfo []PlayerInfoEntry `json:"PlayerInfo,omitempty"` }
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() *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 (o *PlayerInfo) GetPlayerInfo() []PlayerInfoEntry
GetPlayerInfo returns the PlayerInfo field value if set, zero value otherwise.
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 (o *PlayerInfo) HasPlayerInfo() bool
HasPlayerInfo returns a boolean if a field has been set.
func (o PlayerInfo) MarshalJSON() ([]byte, error)
func (o *PlayerInfo) SetPlayerInfo(v []PlayerInfoEntry)
SetPlayerInfo gets a reference to the given []PlayerInfoEntry and assigns it to the PlayerInfo field.
PlayerInfoEntry struct for PlayerInfoEntry
type PlayerInfoEntry struct { Node *float32 `json:"Node,omitempty"` Name *string `json:"Name,omitempty"` Address []float32 `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() *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() *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 (o *PlayerInfoEntry) GetAddress() []float32
GetAddress returns the Address field value if set, zero value otherwise.
func (o *PlayerInfoEntry) GetAddressOk() ([]float32, 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 (o *PlayerInfoEntry) GetData() float32
GetData returns the Data field value if set, zero value otherwise.
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 (o *PlayerInfoEntry) GetName() string
GetName returns the Name field value if set, zero value otherwise.
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 (o *PlayerInfoEntry) GetNode() float32
GetNode returns the Node field value if set, zero value otherwise.
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 (o *PlayerInfoEntry) GetScore() float32
GetScore returns the Score field value if set, zero value otherwise.
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 (o *PlayerInfoEntry) GetSkin() float32
GetSkin returns the Skin field value if set, zero value otherwise.
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 (o *PlayerInfoEntry) GetTeam() float32
GetTeam returns the Team field value if set, zero value otherwise.
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 (o *PlayerInfoEntry) GetTimeInServer() float32
GetTimeInServer returns the TimeInServer field value if set, zero value otherwise.
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 (o *PlayerInfoEntry) HasAddress() bool
HasAddress returns a boolean if a field has been set.
func (o *PlayerInfoEntry) HasData() bool
HasData returns a boolean if a field has been set.
func (o *PlayerInfoEntry) HasName() bool
HasName returns a boolean if a field has been set.
func (o *PlayerInfoEntry) HasNode() bool
HasNode returns a boolean if a field has been set.
func (o *PlayerInfoEntry) HasScore() bool
HasScore returns a boolean if a field has been set.
func (o *PlayerInfoEntry) HasSkin() bool
HasSkin returns a boolean if a field has been set.
func (o *PlayerInfoEntry) HasTeam() bool
HasTeam returns a boolean if a field has been set.
func (o *PlayerInfoEntry) HasTimeInServer() bool
HasTimeInServer returns a boolean if a field has been set.
func (o PlayerInfoEntry) MarshalJSON() ([]byte, error)
func (o *PlayerInfoEntry) SetAddress(v []float32)
SetAddress gets a reference to the given []float32 and assigns it to the Address field.
func (o *PlayerInfoEntry) SetData(v float32)
SetData gets a reference to the given float32 and assigns it to the Data field.
func (o *PlayerInfoEntry) SetName(v string)
SetName gets a reference to the given string and assigns it to the Name field.
func (o *PlayerInfoEntry) SetNode(v float32)
SetNode gets a reference to the given float32 and assigns it to the Node field.
func (o *PlayerInfoEntry) SetScore(v float32)
SetScore gets a reference to the given float32 and assigns it to the Score field.
func (o *PlayerInfoEntry) SetSkin(v float32)
SetSkin gets a reference to the given float32 and assigns it to the Skin field.
func (o *PlayerInfoEntry) SetTeam(v float32)
SetTeam gets a reference to the given float32 and assigns it to the Team field.
func (o *PlayerInfoEntry) SetTimeInServer(v float32)
SetTimeInServer gets a reference to the given float32 and assigns it to the TimeInServer field.
ServerConfiguration stores the information about a server
type ServerConfiguration struct { URL string Description string Variables map[string]ServerVariable }
ServerConfigurations stores multiple ServerConfiguration items
type ServerConfigurations []ServerConfiguration
func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)
URL formats template on a index using given variables
ServerInfo struct for ServerInfo
type ServerInfo struct { PacketVersion *float32 `json:"PacketVersion,omitempty"` Application []float32 `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 *float32 `json:"IsZone,omitempty"` HttpSource *string `json:"HttpSource,omitempty"` FileNeeded []FileNeededInner `json:"FileNeeded,omitempty"` }
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() *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 (o *ServerInfo) GetActNum() float32
GetActNum returns the ActNum field value if set, zero value otherwise.
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 (o *ServerInfo) GetApplication() []float32
GetApplication returns the Application field value if set, zero value otherwise.
func (o *ServerInfo) GetApplicationOk() ([]float32, 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 (o *ServerInfo) GetCheatsEnabled() bool
GetCheatsEnabled returns the CheatsEnabled field value if set, zero value otherwise.
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 (o *ServerInfo) GetFileNeeded() []FileNeededInner
GetFileNeeded returns the FileNeeded field value if set, zero value otherwise.
func (o *ServerInfo) GetFileNeededNum() float32
GetFileNeededNum returns the FileNeededNum field value if set, zero value otherwise.
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 (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 (o *ServerInfo) GetGameType() float32
GetGameType returns the GameType field value if set, zero value otherwise.
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 (o *ServerInfo) GetHttpSource() string
GetHttpSource returns the HttpSource field value if set, zero value otherwise.
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 (o *ServerInfo) GetIsZone() float32
GetIsZone returns the IsZone field value if set, zero value otherwise.
func (o *ServerInfo) GetIsZoneOk() (*float32, 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 (o *ServerInfo) GetKartVars() float32
GetKartVars returns the KartVars field value if set, zero value otherwise.
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 (o *ServerInfo) GetLevelTime() float32
GetLevelTime returns the LevelTime field value if set, zero value otherwise.
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 (o *ServerInfo) GetMapMD5() []float32
GetMapMD5 returns the MapMD5 field value if set, zero value otherwise.
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 (o *ServerInfo) GetMapName() string
GetMapName returns the MapName field value if set, zero value otherwise.
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 (o *ServerInfo) GetMapTitle() string
GetMapTitle returns the MapTitle field value if set, zero value otherwise.
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 (o *ServerInfo) GetMaxPlayers() float32
GetMaxPlayers returns the MaxPlayers field value if set, zero value otherwise.
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 (o *ServerInfo) GetModifiedGame() bool
GetModifiedGame returns the ModifiedGame field value if set, zero value otherwise.
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 (o *ServerInfo) GetNumberOfPlayer() float32
GetNumberOfPlayer returns the NumberOfPlayer field value if set, zero value otherwise.
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 (o *ServerInfo) GetPacketVersion() float32
GetPacketVersion returns the PacketVersion field value if set, zero value otherwise.
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 (o *ServerInfo) GetServerName() string
GetServerName returns the ServerName field value if set, zero value otherwise.
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 (o *ServerInfo) GetServerNameRaw() string
GetServerNameRaw returns the ServerNameRaw field value if set, zero value otherwise.
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 (o *ServerInfo) GetSubVersion() float32
GetSubVersion returns the SubVersion field value if set, zero value otherwise.
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 (o *ServerInfo) GetTime() float32
GetTime returns the Time field value if set, zero value otherwise.
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 (o *ServerInfo) GetVersion() float32
GetVersion returns the Version field value if set, zero value otherwise.
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 (o *ServerInfo) HasActNum() bool
HasActNum returns a boolean if a field has been set.
func (o *ServerInfo) HasApplication() bool
HasApplication returns a boolean if a field has been set.
func (o *ServerInfo) HasCheatsEnabled() bool
HasCheatsEnabled returns a boolean if a field has been set.
func (o *ServerInfo) HasFileNeeded() bool
HasFileNeeded returns a boolean if a field has been set.
func (o *ServerInfo) HasFileNeededNum() bool
HasFileNeededNum returns a boolean if a field has been set.
func (o *ServerInfo) HasGameType() bool
HasGameType returns a boolean if a field has been set.
func (o *ServerInfo) HasHttpSource() bool
HasHttpSource returns a boolean if a field has been set.
func (o *ServerInfo) HasIsZone() bool
HasIsZone returns a boolean if a field has been set.
func (o *ServerInfo) HasKartVars() bool
HasKartVars returns a boolean if a field has been set.
func (o *ServerInfo) HasLevelTime() bool
HasLevelTime returns a boolean if a field has been set.
func (o *ServerInfo) HasMapMD5() bool
HasMapMD5 returns a boolean if a field has been set.
func (o *ServerInfo) HasMapName() bool
HasMapName returns a boolean if a field has been set.
func (o *ServerInfo) HasMapTitle() bool
HasMapTitle returns a boolean if a field has been set.
func (o *ServerInfo) HasMaxPlayers() bool
HasMaxPlayers returns a boolean if a field has been set.
func (o *ServerInfo) HasModifiedGame() bool
HasModifiedGame returns a boolean if a field has been set.
func (o *ServerInfo) HasNumberOfPlayer() bool
HasNumberOfPlayer returns a boolean if a field has been set.
func (o *ServerInfo) HasPacketVersion() bool
HasPacketVersion returns a boolean if a field has been set.
func (o *ServerInfo) HasServerName() bool
HasServerName returns a boolean if a field has been set.
func (o *ServerInfo) HasServerNameRaw() bool
HasServerNameRaw returns a boolean if a field has been set.
func (o *ServerInfo) HasSubVersion() bool
HasSubVersion returns a boolean if a field has been set.
func (o *ServerInfo) HasTime() bool
HasTime returns a boolean if a field has been set.
func (o *ServerInfo) HasVersion() bool
HasVersion returns a boolean if a field has been set.
func (o ServerInfo) MarshalJSON() ([]byte, error)
func (o *ServerInfo) SetActNum(v float32)
SetActNum gets a reference to the given float32 and assigns it to the ActNum field.
func (o *ServerInfo) SetApplication(v []float32)
SetApplication gets a reference to the given []float32 and assigns it to the Application field.
func (o *ServerInfo) SetCheatsEnabled(v bool)
SetCheatsEnabled gets a reference to the given bool and assigns it to the CheatsEnabled field.
func (o *ServerInfo) SetFileNeeded(v []FileNeededInner)
SetFileNeeded gets a reference to the given []FileNeededInner and assigns it to the FileNeeded field.
func (o *ServerInfo) SetFileNeededNum(v float32)
SetFileNeededNum gets a reference to the given float32 and assigns it to the FileNeededNum field.
func (o *ServerInfo) SetGameType(v float32)
SetGameType gets a reference to the given float32 and assigns it to the GameType field.
func (o *ServerInfo) SetHttpSource(v string)
SetHttpSource gets a reference to the given string and assigns it to the HttpSource field.
func (o *ServerInfo) SetIsZone(v float32)
SetIsZone gets a reference to the given float32 and assigns it to the IsZone field.
func (o *ServerInfo) SetKartVars(v float32)
SetKartVars gets a reference to the given float32 and assigns it to the KartVars field.
func (o *ServerInfo) SetLevelTime(v float32)
SetLevelTime gets a reference to the given float32 and assigns it to the LevelTime field.
func (o *ServerInfo) SetMapMD5(v []float32)
SetMapMD5 gets a reference to the given []float32 and assigns it to the MapMD5 field.
func (o *ServerInfo) SetMapName(v string)
SetMapName gets a reference to the given string and assigns it to the MapName field.
func (o *ServerInfo) SetMapTitle(v string)
SetMapTitle gets a reference to the given string and assigns it to the MapTitle field.
func (o *ServerInfo) SetMaxPlayers(v float32)
SetMaxPlayers gets a reference to the given float32 and assigns it to the MaxPlayers field.
func (o *ServerInfo) SetModifiedGame(v bool)
SetModifiedGame gets a reference to the given bool and assigns it to the ModifiedGame field.
func (o *ServerInfo) SetNumberOfPlayer(v float32)
SetNumberOfPlayer gets a reference to the given float32 and assigns it to the NumberOfPlayer field.
func (o *ServerInfo) SetPacketVersion(v float32)
SetPacketVersion gets a reference to the given float32 and assigns it to the PacketVersion field.
func (o *ServerInfo) SetServerName(v string)
SetServerName gets a reference to the given string and assigns it to the ServerName field.
func (o *ServerInfo) SetServerNameRaw(v string)
SetServerNameRaw gets a reference to the given string and assigns it to the ServerNameRaw field.
func (o *ServerInfo) SetSubVersion(v float32)
SetSubVersion gets a reference to the given float32 and assigns it to the SubVersion field.
func (o *ServerInfo) SetTime(v float32)
SetTime gets a reference to the given float32 and assigns it to the Time field.
func (o *ServerInfo) SetVersion(v float32)
SetVersion gets a reference to the given float32 and assigns it to the Version field.
ServerVariable stores the information about a server variable
type ServerVariable struct { Description string DefaultValue string EnumValues []string }