Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(conn io.ReadWriter) *Handler
func (*Handler) HandlePingPong ¶
func (*Handler) ReadHandshake ¶
func (*Handler) ReadStatusRequest ¶
func (*Handler) WriteStatus ¶
type Handshake ¶
type Handshake struct { ProtocolHdr Version int ServerAddr string ServerPort int NextState int }
type ProtocolHdr ¶
type Status ¶
type Status struct { Version struct { Name string `json:"name"` Protocol int `json:"protocol"` } `json:"version"` Players struct { Max int `json:"max"` Online int `json:"online"` Sample []struct { Name string `json:"name"` ID string `json:"id"` } `json:"sample,omitempty"` } `json:"players"` Description struct { Text string `json:"text"` } `json:"description"` Favicon *string `json:"favicon,omitempty"` EnforcesSecureChat bool `json:"enforcesSecureChat"` PreviewsChat *bool `json:"prviewsChat"` CustomData any `json:"x-premises,omitempty"` }
Click to show internal directories.
Click to hide internal directories.