sammanager

package
v0.33.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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

func User

func User() string

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) Dial

func (s *SAMManager) Dial(network, address string) (net.Conn, error)

func (*SAMManager) DialContext

func (s *SAMManager) DialContext(ctx context.Context, network, address string) (*net.Conn, error)

func (*SAMManager) DialTimeout

func (s *SAMManager) DialTimeout(network, address string, timeout time.Duration) (net.Conn, error)

func (*SAMManager) FileConn

func (s *SAMManager) FileConn(f *os.File) (c net.Conn, err error)

func (*SAMManager) Height

func (s *SAMManager) Height() int

func (*SAMManager) Pipe

func (s *SAMManager) Pipe() (net.Conn, net.Conn)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL