Documentation ¶ Index ¶ type Client func NewClient(opts util.ToxOptions) (*Client, error) func (t *Client) Connect(ctx context.Context) (util.ToxConn, error) type Server func NewServer(opts util.ToxOptions) (*Server, error) func (s *Server) ListenAndServe(handler func(util.ToxConn)) error 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 NewClient ¶ func NewClient(opts util.ToxOptions) (*Client, error) func (*Client) Connect ¶ func (t *Client) Connect(ctx context.Context) (util.ToxConn, error) type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(opts util.ToxOptions) (*Server, error) func (*Server) ListenAndServe ¶ added in v1.1.0 func (s *Server) ListenAndServe(handler func(util.ToxConn)) error Source Files ¶ View all Source files client.go server.go Click to show internal directories. Click to hide internal directories.