model

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudAuthInfo

type CloudAuthInfo struct {
	AccessKeyId     string `json:"access_key_id"`
	AccessKeySecret string `json:"access_key_secret"`
}

type MCServerInfo

type MCServerInfo struct {
	ServerName                               string `json:"server_name"`
	RemoteServerIP                           string `json:"remote_server_ip"`
	RemoteServerPort                         string `json:"remote_server_port"`
	InstanceID                               string `json:"instance_id"`
	RconPort                                 string `json:"rcon_port"`
	RconPassword                             string `json:"rcon_password"`
	ShutdownAfterNoPlayerSecond              int64  `json:"shutdown_after_no_player_second"`
	ShutdownAfterNoPlayerCheckIntervalSecond int64  `json:"shutdown_after_no_player_check_interval_second"`
}

type MinecraftServerRequest

type MinecraftServerRequest struct {
	Type       consts.ActionType `json:"type"`
	ServerID   *int64            `json:"server_id"`
	ServerName *string           `json:"server_name"`
	Message    *string           `json:"message"`
}

type MinecraftServerResponse

type MinecraftServerResponse struct {
	ServerList   []*RequestServerListItem `json:"server_list,omitempty"`
	ServerStatus *ServerStatus            `json:"server_status,omitempty"`
	Message      string                   `json:"message,omitempty"`
}

type RequestServerListItem

type RequestServerListItem struct {
	ID   int64  `json:"id"`
	Name string `json:"name"`
}

type ServerConfig

type ServerConfig struct {
	AlicloudConfig        *CloudAuthInfo  `json:"alicloud_config"`
	MinecraftServerConfig []*MCServerInfo `json:"minecraft_server_config"`
}

type ServerStatus

type ServerStatus struct {
	InstanceOnline     bool     `json:"instance_online"`
	ServerOnline       bool     `json:"server_online"`
	OnlinePlayerNumber int64    `json:"online_player_number"`
	OnlinePlayerList   []string `json:"online_player_list"`
}

Jump to

Keyboard shortcuts

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