Documentation ¶
Index ¶
- func GetAKSK() (ak string, sk string)
- func GetInstanceID(serverName *string, serverID *int64) string
- func GetServer(serverName *string, serverID *int64) *model.MCServerInfo
- func GetServerByInstanceID(instanceID string) *model.MCServerInfo
- func GetServerByServerID(id int64) *model.MCServerInfo
- func GetServerByServerName(serverName string) *model.MCServerInfo
- func GetServerConfigList() []*model.MCServerInfo
- func InitConfig()
- func InitResourceManager()
- type MinecraftServerManager
- func (h *MinecraftServerManager) QueryServer() error
- func (h *MinecraftServerManager) QueryServerList() error
- func (h *MinecraftServerManager) Run() (*model.MinecraftServerResponse, error)
- func (h *MinecraftServerManager) SendMessage() error
- func (h *MinecraftServerManager) StartServer() error
- func (h *MinecraftServerManager) StopServer() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInstanceID ¶
func GetServerByInstanceID ¶
func GetServerByInstanceID(instanceID string) *model.MCServerInfo
func GetServerByServerID ¶
func GetServerByServerID(id int64) *model.MCServerInfo
func GetServerByServerName ¶
func GetServerByServerName(serverName string) *model.MCServerInfo
func GetServerConfigList ¶
func GetServerConfigList() []*model.MCServerInfo
func InitConfig ¶
func InitConfig()
func InitResourceManager ¶
func InitResourceManager()
Types ¶
type MinecraftServerManager ¶
type MinecraftServerManager struct { *base_handler.BaseHandler // contains filtered or unexported fields }
func NewMinecraftServerManager ¶
func NewMinecraftServerManager(ctx context.Context, req *model.MinecraftServerRequest) *MinecraftServerManager
func (*MinecraftServerManager) QueryServer ¶
func (h *MinecraftServerManager) QueryServer() error
func (*MinecraftServerManager) QueryServerList ¶
func (h *MinecraftServerManager) QueryServerList() error
func (*MinecraftServerManager) Run ¶
func (h *MinecraftServerManager) Run() (*model.MinecraftServerResponse, error)
func (*MinecraftServerManager) SendMessage ¶
func (h *MinecraftServerManager) SendMessage() error
func (*MinecraftServerManager) StartServer ¶
func (h *MinecraftServerManager) StartServer() error
func (*MinecraftServerManager) StopServer ¶
func (h *MinecraftServerManager) StopServer() error
Click to show internal directories.
Click to hide internal directories.