Documentation ¶
Index ¶
- func SetManagerConf(s *i2ptunconf.Conf) func(*SAMManager) error
- func SetManagerFilePath(s string) func(*SAMManager) error
- func SetManagerHost(s string) func(*SAMManager) error
- func SetManagerPort(s string) func(*SAMManager) error
- func SetManagerSAMHost(s string) func(*SAMManager) error
- func SetManagerSAMPort(s string) func(*SAMManager) error
- func SetManagerStart(s bool) func(*SAMManager) error
- func SetManagerWeb(s bool) func(*SAMManager) error
- func SetManagerWebHost(s string) func(*SAMManager) error
- func SetManagerWebPass(s string) func(*SAMManager) error
- func SetManagerWebPort(s string) func(*SAMManager) error
- func SetManagerWebUser(s string) func(*SAMManager) error
- func SetTunName(s string) func(*SAMManager) error
- func User() string
- type ManagerOption
- type SAMManager
- func (s *SAMManager) Cleanup()
- func (s *SAMManager) Dial(network, address string) (net.Conn, error)
- func (s *SAMManager) DialContext(ctx context.Context, network, address string) (*net.Conn, error)
- func (s *SAMManager) DialTimeout(network, address string, timeout time.Duration) (net.Conn, error)
- func (s *SAMManager) FileConn(f *os.File) (c net.Conn, err error)
- func (s *SAMManager) Height() int
- func (s *SAMManager) Pipe() (net.Conn, net.Conn)
- func (s *SAMManager) Resizable() bool
- func (s *SAMManager) Title() string
- func (s *SAMManager) URL() string
- func (s *SAMManager) UseWebUI() bool
- func (s *SAMManager) Width() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetManagerConf ¶
func SetManagerConf(s *i2ptunconf.Conf) func(*SAMManager) error
SetManagerConf sets the host of the SAMManager's SAM bridge
func SetManagerFilePath ¶
func SetManagerFilePath(s string) func(*SAMManager) error
SetManagerFilePath sets the host of the SAMManager's SAM bridge
func SetManagerHost ¶
func SetManagerHost(s string) func(*SAMManager) error
SetManagerHost sets the host of the SAMManager's SAM bridge
func SetManagerPort ¶
func SetManagerPort(s string) func(*SAMManager) error
SetManagerPort sets the port of the SAMManager's SAM bridge using a string
func SetManagerSAMHost ¶
func SetManagerSAMHost(s string) func(*SAMManager) error
SetManagerSAMHost sets the host of the SAMManager's SAM bridge
func SetManagerSAMPort ¶
func SetManagerSAMPort(s string) func(*SAMManager) error
SetManagerSAMPort sets the port of the SAMManager's SAM bridge using a string
func SetManagerStart ¶
func SetManagerStart(s bool) func(*SAMManager) error
SetManagerStart sets the host of the SAMManager's SAM bridge
func SetManagerWeb ¶
func SetManagerWeb(s bool) func(*SAMManager) error
SetManagerWeb sets the host of the SAMManager's SAM bridge
func SetManagerWebHost ¶
func SetManagerWebHost(s string) func(*SAMManager) error
SetManagerWebHost sets the host of the SAMManager's SAM bridge
func SetManagerWebPass ¶
func SetManagerWebPass(s string) func(*SAMManager) error
SetManagerWebPass sets the host of the SAMManager's SAM bridge
func SetManagerWebPort ¶
func SetManagerWebPort(s string) func(*SAMManager) error
SetManagerWebPort sets the port of the SAMManager's SAM bridge using a string
func SetManagerWebUser ¶
func SetManagerWebUser(s string) func(*SAMManager) error
SetManagerWebUser sets the host of the SAMManager's SAM bridge
func SetTunName ¶
func SetTunName(s string) func(*SAMManager) error
SetTunName sets the host of the SAMManager's SAM bridge
Types ¶
type ManagerOption ¶
type ManagerOption func(*SAMManager) error
ManagerOption is a SAMManager Option
type SAMManager ¶
type SAMManager struct { ServerHost string ServerPort string SamHost string SamPort string UseWeb bool WebHost string WebPort string // contains filtered or unexported fields }
func NewSAMManager ¶
func NewSAMManager(inifile, servhost, servport, samhost, samport, webhost, webport, cssfile, jsfile string, start, web bool, webuser, webpass string) (*SAMManager, error)
func NewSAMManagerFromConf ¶
func NewSAMManagerFromConf(conf *i2ptunconf.Conf, servhost, servport, samhost, samport, webhost, webport, cssfile, jsfile string, start, web bool, webuser, webpass string) (*SAMManager, error)
func NewSAMManagerFromOptions ¶
func NewSAMManagerFromOptions(opts ...func(*SAMManager) error) (*SAMManager, error)
func (*SAMManager) Cleanup ¶
func (s *SAMManager) Cleanup()
func (*SAMManager) DialContext ¶
func (*SAMManager) DialTimeout ¶
func (*SAMManager) Height ¶
func (s *SAMManager) Height() int
func (*SAMManager) Resizable ¶
func (s *SAMManager) Resizable() bool
func (*SAMManager) Title ¶
func (s *SAMManager) Title() string
func (*SAMManager) URL ¶
func (s *SAMManager) URL() string
func (*SAMManager) UseWebUI ¶
func (s *SAMManager) UseWebUI() bool
func (*SAMManager) Width ¶
func (s *SAMManager) Width() int