rcon

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 5 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 {
	// contains filtered or unexported fields
}

func New

func New(host string, port int, password string) (*Client, error)

func (Client) DataGetEntity

func (c Client) DataGetEntity(username string) (*User, error)

TODO: return nil,nil を辞める

func (Client) List

func (c Client) List() ([]string, error)

func (Client) Title

func (c Client) Title(msg string) ([]string, error)

func (Client) WhitelistAdd

func (c Client) WhitelistAdd(username string) error

func (Client) WhitelistList

func (c Client) WhitelistList() ([]string, error)

func (Client) WhitelistRemove

func (c Client) WhitelistRemove(username string) error

type Command

type Command struct {
	// contains filtered or unexported fields
}

type Position

type Position struct {
	X float32
	Y float32
	Z float32
}

type RconClient

type RconClient interface {
	List() ([]string, error)
	WhitelistAdd(string) error
	WhitelistRemove(string) error
	WhitelistList() ([]string, error)
	DataGetEntity(string) (*User, error)
	Title(string) ([]string, error)
}

type User

type User struct {
	Health  float32
	XpLevel uint
	Position
}

Jump to

Keyboard shortcuts

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