client

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Addr    string
	Port    int
	Version uint64
	Conn    net.Conn
}

Client TCP client

func New

func New(addr string, port int, ver uint64) (*Client, error)

New client connection

func (*Client) GetStatus

func (client *Client) GetStatus() (*pb.Response, error)

GetStatus gets minecraft server status

func (*Client) PingServer

func (client *Client) PingServer() time.Duration

PingServer pings Minecraft server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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