Documentation ¶ Index ¶ func Server(addr string, fn Handler) error type Client func NewClient(addr string) (*Client, error) func (c *Client) Close() func (c *Client) Read() ([]byte, error) func (c *Client) Send(msg []byte) error type Handler Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Server ¶ func Server(addr string, fn Handler) error Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func NewClient ¶ func NewClient(addr string) (*Client, error) func (*Client) Close ¶ func (c *Client) Close() func (*Client) Read ¶ func (c *Client) Read() ([]byte, error) func (*Client) Send ¶ func (c *Client) Send(msg []byte) error type Handler ¶ type Handler func(msg []byte) []byte Source Files ¶ View all Source files client.goserver.go Click to show internal directories. Click to hide internal directories.