Documentation
¶
Index ¶
- func DownloadFile(endpoint string, filePath string) error
- func DownloadNonSSMFile(url string, filePath string) error
- func GetPublicIP() (string, error)
- func SendFile(endpoint string, filepath string) error
- func SendGetRequest(endpoint string, returnModel interface{}) error
- func SendPostRequest(endpoint string, bodyModel interface{}, returnModel interface{}) error
- func SendPutRequest(endpoint string, bodyModel interface{}, returnModel interface{}) error
- type APIError
- type HTTPRequestBody_Config
- type HttpRequestBody_Status
- type HttpResponseBody
- type HttpResponseBody_Config
- type HttpResponseBody_Config_Config
- type HttpResponseBody_Config_ServerConfig
- type IP
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFile ¶
func DownloadNonSSMFile ¶
func GetPublicIP ¶
func SendGetRequest ¶
func SendPostRequest ¶
func SendPutRequest ¶ added in v1.0.53
Types ¶
type HTTPRequestBody_Config ¶
type HttpRequestBody_Status ¶ added in v1.0.53
type HttpResponseBody ¶
type HttpResponseBody_Config ¶
type HttpResponseBody_Config struct { Config HttpResponseBody_Config_Config `json:"config"` ServerConfig HttpResponseBody_Config_ServerConfig `json:"serverConfig"` }
type HttpResponseBody_Config_Config ¶ added in v1.0.53
type HttpResponseBody_Config_ServerConfig ¶ added in v1.0.53
type HttpResponseBody_Config_ServerConfig struct { SFBranch string `json:"branch"` WorkerThreads int `json:"workerThreads"` MaxPlayers int `json:"maxPlayers"` UpdateOnStart bool `json:"checkForUpdatesOnStart"` AutoRestart bool `json:"autoRestartServer"` AutoPause bool `json:"autoPause"` AutoSaveOnDisconnect bool `json:"autoSaveOnDisconnect"` AutoSaveInterval float32 `json:"autoSaveInterval"` DisableSeasonalEvents bool `json:"disableSeasonalEvents"` }
Click to show internal directories.
Click to hide internal directories.