Versions in this module Expand all Collapse all v0 v0.1.0 Jan 17, 2019 Changes in this version + type DialConf struct + Forward proxy.Dialer + ProxyAddress string + ProxyAuth *proxy.Auth + ProxyNetwork string + SkipEnableNetwork bool + type Dialer struct + func (d *Dialer) DialContext(ctx context.Context, network string, addr string) (net.Conn, error) + type ListenConf struct + ClientAuths map[string]string + Detach bool + DiscardKey bool + Key crypto.PrivateKey + LocalListener net.Listener + LocalPort int + MaxStreams int + MaxStreamsCloseCircuit bool + NoWait bool + NonAnonymous bool + RemotePorts []int + Version3 bool + type OnionService struct + ClientAuths map[string]string + CloseLocalListenerOnClose bool + ID string + Key crypto.PrivateKey + LocalListener net.Listener + RemotePorts []int + Tor *Tor + Version3 bool + func (o *OnionService) Accept() (net.Conn, error) + func (o *OnionService) Addr() net.Addr + func (o *OnionService) Close() (err error) + func (o *OnionService) Network() string + func (o *OnionService) String() string + type StartConf struct + ControlPort int + DataDir string + DebugWriter io.Writer + DisableCookieAuth bool + DisableEagerAuth bool + EnableNetwork bool + ExePath string + ExtraArgs []string + GeoIPFileReader func(ipv6 bool) (io.ReadCloser, error) + NoAutoSocksPort bool + NoHush bool + ProcessCreator process.Creator + RetainTempDataDir bool + TempDataDirBase string + TorrcFile string + UseEmbeddedControlConn bool + type Tor struct + Control *control.Conn + ControlPort int + DataDir string + DebugWriter io.Writer + DeleteDataDirOnClose bool + GeoIPCreatedFile string + GeoIPv6CreatedFile string + Process process.Process + ProcessCancelFunc context.CancelFunc + StopProcessOnClose bool + func Start(ctx context.Context, conf *StartConf) (*Tor, error) + func (t *Tor) Close() error + func (t *Tor) DebugEnabled() bool + func (t *Tor) Debugf(format string, args ...interface{}) + func (t *Tor) Dialer(ctx context.Context, conf *DialConf) (*Dialer, error) + func (t *Tor) EnableNetwork(ctx context.Context, wait bool) error + func (t *Tor) Listen(ctx context.Context, conf *ListenConf) (*OnionService, error)