Versions in this module Expand all Collapse all v0 v0.0.1 Jul 20, 2018 Changes in this version + type Client struct + func NewClient(w io.Writer) *Client + func NewClientColor(w io.Writer, color bool) *Client + func (c *Client) Call(method string, request, response proto.Message) (CommandResult, error) + func (c *Client) CallPlugin(plugin, method string, request, response proto.Message) (CommandResult, error) + func (c *Client) Close() error + func (c *Client) Connect() error + func (c *Client) ConnectAddr(addr string) error + func (c *Client) Lock() + func (c *Client) RunCommand(command string, args ...string) (CommandResult, error) + func (c *Client) RunLua(module, function string, args ...string) ([]string, CommandResult, error) + func (c *Client) Unlock() + type CommandResult int + const Failure + const LinkFailure + const NeedsConsole + const NotFound + const NotImplemented + const OK + const WrongUsage + func (rv CommandResult) Err() error + func (rv CommandResult) String() string