master

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Master

type Master struct {
	Address    string
	CommonName string
	MOTDJunk   string `json:"-"`
	MOTD       string
	Servers    map[string]*protocol.Server `json:"-"`
	Ping       time.Duration
	MasterID   uint16
	// contains filtered or unexported fields
}

func NewMaster added in v1.2.0

func NewMaster() *Master

func (*Master) MarshalBinaryHeader added in v1.2.0

func (m *Master) MarshalBinaryHeader() []byte

func (*Master) MarshalBinarySet added in v1.2.0

func (m *Master) MarshalBinarySet(input map[string]*protocol.Server) []byte

func (*Master) Query

func (m *Master) Query(conn net.Conn, id int, options *protocol.Options) error

func (*Master) SendResponse added in v1.2.0

func (m *Master) SendResponse(conn *net.PacketConn, addr *net.UDPAddr, options *protocol.Options)

func (*Master) UnmarshalBinary

func (m *Master) UnmarshalBinary(p *protocol.Packet) error

type Query

type Query struct {
	MasterData *Master
	Error      error
}

Jump to

Keyboard shortcuts

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