Versions in this module Expand all Collapse all v0 v0.0.1 Apr 5, 2017 Changes in this version + const StatusAsyncEvent + const StatusErrAuthenticationRequired + const StatusErrBadAuthentication + const StatusErrInternalError + const StatusErrInvalidConfigValue + const StatusErrInvalidDescriptor + const StatusErrResourceExhausted + const StatusErrSyntaxError + const StatusErrSyntaxErrorArg + const StatusErrUnimplementedCmd + const StatusErrUnmanagedEntity + const StatusErrUnrecognizedCmd + const StatusErrUnrecognizedCmdArg + const StatusErrUnrecognizedEntity + const StatusErrUnspecifiedTorError + const StatusOk + const StatusOkUnneccecary + var ErrNoAsyncReader = errors.New("event requested without an async reader") + type Conn struct + func Dial(network, addr string) (*Conn, error) + func NewConn(c io.ReadWriteCloser) *Conn + func (c *Conn) AddOnion(ports []OnionPortSpec, key crypto.PrivateKey, oneshot bool) (*OnionInfo, error) + func (c *Conn) Authenticate(password string) error + func (c *Conn) Close() error + func (c *Conn) Debug(enable bool) + func (c *Conn) DeleteOnion(serviceID string) error + func (c *Conn) Dialer(auth *proxy.Auth) (proxy.Dialer, error) + func (c *Conn) Listener(port uint16, key crypto.PrivateKey) (net.Listener, error) + func (c *Conn) NewListener(config *NewOnionConfig, vports ...uint16) (net.Listener, error) + func (c *Conn) NewOnion(config *NewOnionConfig) (*OnionInfo, error) + func (c *Conn) NextEvent() (*Response, error) + func (c *Conn) ProtocolInfo() (*ProtocolInfo, error) + func (c *Conn) Read(p []byte) (int, error) + func (c *Conn) ReadResponse() (*Response, error) + func (c *Conn) Request(fmt string, args ...interface{}) (*Response, error) + func (c *Conn) StartAsyncReader() + func (c *Conn) Write(p []byte) (int, error) + type NewOnionConfig struct + BasicAuth bool + Detach bool + DiscardPK bool + NonAnonymous bool + PortSpecs []OnionPortSpec + PrivateKey crypto.PrivateKey + type OnionInfo struct + OnionID string + PrivateKey crypto.PrivateKey + RawResponse *Response + type OnionPortSpec struct + Target string + VirtPort uint16 + type OnionPrivateKey struct + Key string + KeyType string + type ProtocolInfo struct + AuthMethods map[string]bool + CookieFile string + RawResponse *Response + TorVersion string + type Response struct + Data []string + Err *textproto.Error + RawLines []string + Reply string + func (r *Response) IsAsync() bool + func (r *Response) IsOk() bool