Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Do ¶
Do queries a server at the address passed using the UT3 query protocol. If the server responds, a map containing information is returned. Note that some servers do not support querying, in which case the query will time out. Do will take at most five seconds to try and get the query information.
Types ¶
type QueryServer ¶ added in v0.2.0
type QueryServer struct {
// contains filtered or unexported fields
}
func (*QueryServer) Close ¶ added in v0.2.0
func (q *QueryServer) Close() error
func (*QueryServer) Serve ¶ added in v0.2.0
func (q *QueryServer) Serve(addr string) error
func (*QueryServer) SetPlayers ¶ added in v0.2.0
func (q *QueryServer) SetPlayers(players []string)
func (*QueryServer) SetQueryInfo ¶ added in v0.2.0
func (q *QueryServer) SetQueryInfo(queryInfo map[string]string)
Click to show internal directories.
Click to hide internal directories.