Versions in this module Expand all Collapse all v0 v0.0.2 Aug 24, 2020 v0.0.1 Mar 3, 2020 Changes in this version + func SetAccessList(s []string) func(*SAMClientServerVPN) error + func SetAccessListType(s string) func(*SAMClientServerVPN) error + func SetAllowZeroIn(b bool) func(*SAMClientServerVPN) error + func SetAllowZeroOut(b bool) func(*SAMClientServerVPN) error + func SetClientFilePath(s string) func(*SAMClientServerVPN) error + func SetCloseIdle(b bool) func(*SAMClientServerVPN) error + func SetCloseIdleTime(u int) func(*SAMClientServerVPN) error + func SetCloseIdleTimeMs(u int) func(*SAMClientServerVPN) error + func SetCompress(b bool) func(*SAMClientServerVPN) error + func SetEepProxy(s string) func(*SAMClientServerVPN) error + func SetEncrypt(b bool) func(*SAMClientServerVPN) error + func SetEndpointHost(s string) func(*SAMClientServerVPN) error + func SetFastRecieve(b bool) func(*SAMClientServerVPN) error + func SetFilePath(s string) func(*SAMClientServerVPN) error + func SetInBackups(u int) func(*SAMClientServerVPN) error + func SetInLength(u int) func(*SAMClientServerVPN) error + func SetInQuantity(u int) func(*SAMClientServerVPN) error + func SetInVariance(i int) func(*SAMClientServerVPN) error + func SetLeaseSetKey(s string) func(*SAMClientServerVPN) error + func SetLeaseSetPrivateKey(s string) func(*SAMClientServerVPN) error + func SetLeaseSetPrivateSigningKey(s string) func(*SAMClientServerVPN) error + func SetMessageReliability(s string) func(*SAMClientServerVPN) error + func SetName(s string) func(*SAMClientServerVPN) error + func SetOutBackups(u int) func(*SAMClientServerVPN) error + func SetOutLength(u int) func(*SAMClientServerVPN) error + func SetOutQuantity(u int) func(*SAMClientServerVPN) error + func SetOutVariance(i int) func(*SAMClientServerVPN) error + func SetPointHost(s string) func(*SAMClientServerVPN) error + func SetReduceIdle(b bool) func(*SAMClientServerVPN) error + func SetReduceIdleQuantity(u int) func(*SAMClientServerVPN) error + func SetReduceIdleTime(u int) func(*SAMClientServerVPN) error + func SetReduceIdleTimeMs(u int) func(*SAMClientServerVPN) error + func SetSAMHost(s string) func(*SAMClientServerVPN) error + func SetSAMPort(s string) func(*SAMClientServerVPN) error + func SetSaveFile(b bool) func(*SAMClientServerVPN) error + func SetSigType(s string) func(*SAMClientServerVPN) error + func SetType(s string) func(*SAMClientServerVPN) error + func SetVPNConfig(s *i2ptunconf.Conf) func(*SAMClientServerVPN) error + type Option func(*SAMClientServerVPN) error + type SAMClientServerVPN struct + ClientFilePath string + WhiteListers []whitelister.WhiteLister + func NewSAMClientServerVPN(conf *i2ptunconf.Conf) (*SAMClientServerVPN, error) + func NewSAMClientServerVPNFromOptions(opts ...func(*SAMClientServerVPN) error) (*SAMClientServerVPN, error) + func NewSAMVPNForwarderFromConfig(iniFile, SamHost, SamPort string, label ...string) (*SAMClientServerVPN, error) + func (f *SAMClientServerVPN) Base32() string + func (f *SAMClientServerVPN) Base32Readable() string + func (f *SAMClientServerVPN) Base64() string + func (f *SAMClientServerVPN) Cleanup() + func (f *SAMClientServerVPN) ClientConfig() string + func (f *SAMClientServerVPN) Close() error + func (f *SAMClientServerVPN) Config() *i2ptunconf.Conf + func (f *SAMClientServerVPN) GetType() string + func (f *SAMClientServerVPN) ID() string + func (f *SAMClientServerVPN) Keys() i2pkeys.I2PKeys + func (f *SAMClientServerVPN) LoadRemoteAddr() net.Addr + func (f *SAMClientServerVPN) LocalAddr() (net.Addr, error) + func (f *SAMClientServerVPN) Print() string + func (f *SAMClientServerVPN) Props() map[string]string + func (f *SAMClientServerVPN) SAMSetupSock(netAddr net.Addr) net.PacketConn + func (f *SAMClientServerVPN) Search(search string) string + func (f *SAMClientServerVPN) Target() string + func (f *SAMClientServerVPN) TargetAddr() (net.Addr, error) + func (f *SAMClientServerVPN) Up() bool + func (f *SAMClientServerVPN) UpdateRemoteAddr(addr net.Addr) + func (s *SAMClientServerVPN) Load() (samtunnel.SAMTunnel, error) + func (s *SAMClientServerVPN) Serve() error + func (t *SAMClientServerVPN) WriteConn(sock net.PacketConn, raddr net.Addr, b []byte, n int, magic [16]byte) (int, error) + func (w *SAMClientServerVPN) Check(x interface{}) (string, interface{}, bool)