Documentation ¶
Index ¶
- func GetDefaultIcon() image.Image
- func GetIcon(host string, port uint16, options ...IconOptions) (image.Image, error)
- func GetJavaWidget(host string, port uint16, options ...JavaWidgetOptions) (image.Image, error)
- func SendVote(host string, port uint16, options ...SendVoteOptions) error
- type BedrockStatusOptions
- type BedrockStatusResponse
- type IconOptions
- type JavaStatusOptions
- type JavaStatusResponse
- type JavaWidgetOptions
- type SendVoteOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultIcon ¶
func GetJavaWidget ¶
Types ¶
type BedrockStatusOptions ¶
type BedrockStatusOptions struct {
Timeout float64
}
type BedrockStatusResponse ¶
type BedrockStatusResponse struct { Online bool `json:"online"` Host string `json:"host"` Port uint16 `json:"port"` IPAddress string `json:"ip_address"` EULABlocked bool `json:"eula_blocked"` RetrievedAt time.Time `json:"retrieved_at"` ExpiresAt time.Time `json:"expires_at"` Version *struct { Name string `json:"name"` Protocol int `json:"protocol"` } `json:"version,omitempty"` Players *struct { Online int `json:"online"` Max int `json:"max"` } `json:"players,omitempty"` MOTD struct { Raw string `json:"raw"` Clean string `json:"clean"` HTML string `json:"html"` } `json:"motd,omitempty"` Gamemode string `json:"gamemode,omitempty"` ServerID string `json:"server_id,omitempty"` Edition string `json:"edition,omitempty"` }
func GetBedrockStatus ¶
func GetBedrockStatus(host string, port uint16, options ...BedrockStatusOptions) (*BedrockStatusResponse, error)
type IconOptions ¶
type IconOptions struct {
Timeout float64
}
type JavaStatusOptions ¶
type JavaStatusResponse ¶
type JavaStatusResponse struct { Online bool `json:"online"` Host string `json:"host"` Port uint16 `json:"port"` IPAddress string `json:"ip_address"` EULABlocked bool `json:"eula_blocked"` RetrievedAt time.Time `json:"retrieved_at"` ExpiresAt time.Time `json:"expires_at"` Version *struct { NameRaw string `json:"name_raw"` NameClean string `json:"name_clean"` NameHTML string `json:"name_html"` Protocol int `json:"protocol"` } `json:"version,omitempty"` Players *struct { Online int `json:"online"` Max int `json:"max"` List []struct { UUID string `json:"uuid"` NameRaw string `json:"name_raw"` NameClean string `json:"name_clean"` NameHTML string `json:"name_html"` } `json:"list"` } `json:"players,omitempty"` MOTD struct { Raw string `json:"raw"` Clean string `json:"clean"` HTML string `json:"html"` } `json:"motd,omitempty"` Icon image.Image `json:"icon,omitempty"` Mods []struct { Name string `json:"name"` Version string `json:"version"` } `json:"mods,omitempty"` Software *string `json:"software"` Plugins []struct { Name string `json:"name"` Version string `json:"version"` } `json:"plugins,omitempty"` SRVRecord *struct { Host string `json:"host"` Port uint16 `json:"port"` } `json:"srv_record,omitempty"` }
func GetJavaStatus ¶
func GetJavaStatus(host string, port uint16, options ...JavaStatusOptions) (*JavaStatusResponse, error)
type JavaWidgetOptions ¶
Click to show internal directories.
Click to hide internal directories.