Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDisconnected = errors.New("disconnected")
)
Functions ¶
This section is empty.
Types ¶
type ReadCallback ¶
type ReadCallback func(con *ServerConnection, text string)
type ServerConnection ¶
type ServerConnection struct {
// contains filtered or unexported fields
}
func Connect ¶
func Connect(address string) (*ServerConnection, error)
func (*ServerConnection) ClickField ¶
func (c *ServerConnection) ClickField(fieldIndex int) error
func (*ServerConnection) Close ¶
func (c *ServerConnection) Close() error
func (*ServerConnection) Read ¶
func (c *ServerConnection) Read(callback ReadCallback)
func (*ServerConnection) ReadLine ¶
func (c *ServerConnection) ReadLine() (string, error)
func (*ServerConnection) Send ¶
func (c *ServerConnection) Send(text string) error
Click to show internal directories.
Click to hide internal directories.