Documentation ¶
Index ¶
- Variables
- func ProxyBasicAuth(r *http.Request) (username, password string, ok bool)
- func SetAddr(s ...string) func(*SAMMultiProxy) error
- func SetAddrMixed(s string, i int) func(*SAMMultiProxy) error
- func SetCompression(b bool) func(*SAMMultiProxy) error
- func SetControlAddr(s ...string) func(*SAMMultiProxy) error
- func SetControlHost(s string) func(*SAMMultiProxy) error
- func SetControlPort(s string) func(*SAMMultiProxy) error
- func SetDebug(b bool) func(*SAMMultiProxy) error
- func SetEncrypt(b bool) func(*SAMMultiProxy) error
- func SetHost(s string) func(*SAMMultiProxy) error
- func SetInBackups(u uint) func(*SAMMultiProxy) error
- func SetInLength(u uint) func(*SAMMultiProxy) error
- func SetInQuantity(u uint) func(*SAMMultiProxy) error
- func SetInVariance(i int) func(*SAMMultiProxy) error
- func SetKeysPath(s string) func(*SAMMultiProxy) error
- func SetName(s string) func(*SAMMultiProxy) error
- func SetOutBackups(u uint) func(*SAMMultiProxy) error
- func SetOutLength(u uint) func(*SAMMultiProxy) error
- func SetOutQuantity(u uint) func(*SAMMultiProxy) error
- func SetOutVariance(i int) func(*SAMMultiProxy) error
- func SetPort(s string) func(*SAMMultiProxy) error
- func SetPortInt(i int) func(*SAMMultiProxy) error
- func SetProxyAddr(s ...string) func(*SAMMultiProxy) error
- func SetProxyMode(b bool) func(*SAMMultiProxy) error
- func SetReduceIdle(b bool) func(*SAMMultiProxy) error
- func SetReduceIdleQuantity(u uint) func(*SAMMultiProxy) error
- func SetReduceIdleTime(u uint) func(*SAMMultiProxy) error
- func SetUnpublished(b bool) func(*SAMMultiProxy) error
- type Credentials
- type Option
- type SAMMultiProxy
- func (p *SAMMultiProxy) Base32() string
- func (f *SAMMultiProxy) Base32Readable() string
- func (p *SAMMultiProxy) Base64() string
- func (p *SAMMultiProxy) Cleanup()
- func (p *SAMMultiProxy) Close() error
- func (f *SAMMultiProxy) Config() *i2ptunconf.Conf
- func (f *SAMMultiProxy) GetType() string
- func (f *SAMMultiProxy) ID() string
- func (p *SAMMultiProxy) Keys() i2pkeys.I2PKeys
- func (handler *SAMMultiProxy) Load() (samtunnel.SAMTunnel, error)
- func (p *SAMMultiProxy) Print() string
- func (f *SAMMultiProxy) Props() map[string]string
- func (p *SAMMultiProxy) Save() string
- func (p *SAMMultiProxy) Search(search string) string
- func (p *SAMMultiProxy) Serve() error
- func (p *SAMMultiProxy) ServeHTTP(wr http.ResponseWriter, req *http.Request)
- func (m *SAMMultiProxy) Signin(w http.ResponseWriter, r *http.Request) (*samClient, *http.Request)
- func (p *SAMMultiProxy) Target() string
- func (f *SAMMultiProxy) Up() bool
Constants ¶
This section is empty.
Variables ¶
var Quiet bool
Functions ¶
func SetAddr ¶
func SetAddr(s ...string) func(*SAMMultiProxy) error
SetAddr sets a clients's address in the form host:port or host, port
func SetAddrMixed ¶
func SetAddrMixed(s string, i int) func(*SAMMultiProxy) error
SetAddrMixed sets a clients's address in the form host, port(int)
func SetCompression ¶
func SetCompression(b bool) func(*SAMMultiProxy) error
SetCompression sets the tunnels to close after a specific amount of time
func SetControlAddr ¶
func SetControlAddr(s ...string) func(*SAMMultiProxy) error
SetControlAddr sets a clients's address in the form host:port or host, port
func SetControlHost ¶
func SetControlHost(s string) func(*SAMMultiProxy) error
SetContrlHost sets the host of the client's Proxy Controller
func SetControlPort ¶
func SetControlPort(s string) func(*SAMMultiProxy) error
SetContrlPort sets the host of the client's Proxy Controller
func SetDebug ¶
func SetDebug(b bool) func(*SAMMultiProxy) error
SetDebug enables debugging messages
func SetEncrypt ¶
func SetEncrypt(b bool) func(*SAMMultiProxy) error
SetEncrypt tells the router to use an encrypted leaseset
func SetHost ¶
func SetHost(s string) func(*SAMMultiProxy) error
SetHost sets the host of the client's SAM bridge
func SetInBackups ¶
func SetInBackups(u uint) func(*SAMMultiProxy) error
SetInBackups sets the inbound tunnel backups
func SetInLength ¶
func SetInLength(u uint) func(*SAMMultiProxy) error
SetInLength sets the number of hops inbound
func SetInQuantity ¶
func SetInQuantity(u uint) func(*SAMMultiProxy) error
SetInQuantity sets the inbound tunnel quantity
func SetInVariance ¶
func SetInVariance(i int) func(*SAMMultiProxy) error
SetInVariance sets the variance of a number of hops inbound
func SetKeysPath ¶
func SetKeysPath(s string) func(*SAMMultiProxy) error
SetKeysPath sets the path to the key save files
func SetName ¶
func SetName(s string) func(*SAMMultiProxy) error
SetName sets a clients's address in the form host:port or host, port
func SetOutBackups ¶
func SetOutBackups(u uint) func(*SAMMultiProxy) error
SetOutBackups sets the inbound tunnel backups
func SetOutLength ¶
func SetOutLength(u uint) func(*SAMMultiProxy) error
SetOutLength sets the number of hops outbound
func SetOutQuantity ¶
func SetOutQuantity(u uint) func(*SAMMultiProxy) error
SetOutQuantity sets the outbound tunnel quantity
func SetOutVariance ¶
func SetOutVariance(i int) func(*SAMMultiProxy) error
SetOutVariance sets the variance of a number of hops outbound
func SetPort ¶
func SetPort(s string) func(*SAMMultiProxy) error
SetPort sets the port of the client's SAM bridge using a string
func SetPortInt ¶
func SetPortInt(i int) func(*SAMMultiProxy) error
SetPortInt sets the port of the client's SAM bridge using a string
func SetProxyAddr ¶
func SetProxyAddr(s ...string) func(*SAMMultiProxy) error
SetProxyAddr sets a clients's address in the form host:port or host, port
func SetProxyMode ¶
func SetProxyMode(b bool) func(*SAMMultiProxy) error
SetProxyMode tells whether to use per-ID or per-domain isolation
func SetReduceIdle ¶
func SetReduceIdle(b bool) func(*SAMMultiProxy) error
SetReduceIdle sets the created tunnels to be reduced during extended idle time to avoid excessive resource usage
func SetReduceIdleQuantity ¶
func SetReduceIdleQuantity(u uint) func(*SAMMultiProxy) error
SetReduceIdleQuantity sets number of tunnels to keep alive during an extended idle period
func SetReduceIdleTime ¶
func SetReduceIdleTime(u uint) func(*SAMMultiProxy) error
SetReduceIdleTime sets time to wait before the tunnel quantity is reduced
func SetUnpublished ¶
func SetUnpublished(b bool) func(*SAMMultiProxy) error
SetUnpublished tells the router to not publish the client leaseset
Types ¶
type Credentials ¶
func DecodeIdentity ¶
type SAMMultiProxy ¶
type SAMMultiProxy struct { Hasher *hashhash.Hasher Conf *i2ptunconf.Conf // contains filtered or unexported fields }
func NewHttpProxy ¶
func NewHttpProxy(opts ...func(*SAMMultiProxy) error) (*SAMMultiProxy, error)
func (*SAMMultiProxy) Base32 ¶
func (p *SAMMultiProxy) Base32() string
func (*SAMMultiProxy) Base32Readable ¶
func (f *SAMMultiProxy) Base32Readable() string
Base32Readable returns the base32 address where the local service is being forwarded, but as a list of English words(More languages later if it works) instead of as a hash for person-to-person transmission.
func (*SAMMultiProxy) Base64 ¶
func (p *SAMMultiProxy) Base64() string
func (*SAMMultiProxy) Cleanup ¶
func (p *SAMMultiProxy) Cleanup()
func (*SAMMultiProxy) Close ¶
func (p *SAMMultiProxy) Close() error
func (*SAMMultiProxy) Config ¶
func (f *SAMMultiProxy) Config() *i2ptunconf.Conf
func (*SAMMultiProxy) GetType ¶
func (f *SAMMultiProxy) GetType() string
func (*SAMMultiProxy) ID ¶
func (f *SAMMultiProxy) ID() string
func (*SAMMultiProxy) Keys ¶
func (p *SAMMultiProxy) Keys() i2pkeys.I2PKeys
func (*SAMMultiProxy) Load ¶
func (handler *SAMMultiProxy) Load() (samtunnel.SAMTunnel, error)
func (*SAMMultiProxy) Print ¶
func (p *SAMMultiProxy) Print() string
func (*SAMMultiProxy) Props ¶
func (f *SAMMultiProxy) Props() map[string]string
func (*SAMMultiProxy) Save ¶
func (p *SAMMultiProxy) Save() string
func (*SAMMultiProxy) Search ¶
func (p *SAMMultiProxy) Search(search string) string
func (*SAMMultiProxy) Serve ¶
func (p *SAMMultiProxy) Serve() error
func (*SAMMultiProxy) ServeHTTP ¶
func (p *SAMMultiProxy) ServeHTTP(wr http.ResponseWriter, req *http.Request)
func (*SAMMultiProxy) Signin ¶
func (m *SAMMultiProxy) Signin(w http.ResponseWriter, r *http.Request) (*samClient, *http.Request)
func (*SAMMultiProxy) Target ¶
func (p *SAMMultiProxy) Target() string
func (*SAMMultiProxy) Up ¶
func (f *SAMMultiProxy) Up() bool