Documentation ¶
Index ¶
- func SetHost(s string) func(*SamList) error
- func SetIdleConns(s int) func(*SamList) error
- func SetInBackups(s int) func(*SamList) error
- func SetInQuantity(s int) func(*SamList) error
- func SetInitAddress(s string) func(*SamList) error
- func SetKeepAlives(s bool) func(*SamList) error
- func SetLifespan(s int) func(*SamList) error
- func SetOutBackups(s int) func(*SamList) error
- func SetOutQuantity(s int) func(*SamList) error
- func SetPort(v string) func(*SamList) error
- func SetPortInt(v int) func(*SamList) error
- func SetSamHTTPHost(s string) func(*SamHTTP) error
- func SetSamHTTPIdleQuantity(s int) func(*SamHTTP) error
- func SetSamHTTPInBackupQuantity(s int) func(*SamHTTP) error
- func SetSamHTTPInQuantity(s int) func(*SamHTTP) error
- func SetSamHTTPKeepAlives(s bool) func(*SamHTTP) error
- func SetSamHTTPLifespan(s int) func(*SamHTTP) error
- func SetSamHTTPOutBackupQuantity(s int) func(*SamHTTP) error
- func SetSamHTTPOutQuantity(s int) func(*SamHTTP) error
- func SetSamHTTPPort(v string) func(*SamHTTP) error
- func SetSamHTTPPortInt(v int) func(*SamHTTP) error
- func SetSamHTTPRequest(s string) func(*SamHTTP) error
- func SetSamHTTPTimeout(s int) func(*SamHTTP) error
- func SetSamHTTPTunLength(s int) func(*SamHTTP) error
- func SetTimeout(s int) func(*SamList) error
- func SetTunLength(s int) func(*SamList) error
- type ClientOption
- type ConnectOption
- type SamHTTP
- type SamList
- func (samStack *SamList) CleanupClient()
- func (samStack *SamList) CopyRequest(request *http.Request, response *http.Response, directory string) *http.Response
- func (samStack *SamList) ReadDelete() bool
- func (samStack *SamList) ReadRequest()
- func (samStack *SamList) SendClientRequestHTTP(request *http.Request) (*http.Client, string)
- func (samStack *SamList) WriteResponses()
- type SamURL
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetIdleConns ¶
SetIdleConns set's the max idle connections per host
func SetInBackups ¶
SetInBackups set's the inbound backup tunnel quantity
func SetInQuantity ¶
SetInQuantity set's the inbound tunnel quantity
func SetInitAddress ¶
SetInitAddress tells the client to retrieve an URL before any other URL
func SetKeepAlives ¶
SetKeepAlives tells the client whether or not to allow keepalives
func SetLifespan ¶
SetLifespan set's the time before an inactive client is torn down
func SetOutBackups ¶
SetOutBackups set's the outbound backup tunnel quantity
func SetOutQuantity ¶
SetOutQuantity set's the outbound tunnel quantity
func SetPortInt ¶
SetPortInt sets the port of the client's SAM bridge
func SetSamHTTPHost ¶
SetSamHTTPHost sets the host of the client's SAM bridge
func SetSamHTTPIdleQuantity ¶
SetSamHTTPIdleQuantity set's the outbound tunnel quantity
func SetSamHTTPInBackupQuantity ¶
SetSamHTTPInBackupQuantity set's the inbound tunnel quantity
func SetSamHTTPInQuantity ¶
SetSamHTTPInQuantity set's the inbound tunnel quantity
func SetSamHTTPKeepAlives ¶
SetSamHTTPKeepAlives tells the SamHTTP connection whether to accept keepAlives
func SetSamHTTPLifespan ¶
SetSamHTTPLifespan set's the time before an inactive SamHTTP client is torn down
func SetSamHTTPOutBackupQuantity ¶
SetSamHTTPOutBackupQuantity set's the outbound tunnel quantity
func SetSamHTTPOutQuantity ¶
SetSamHTTPOutQuantity set's the outbound tunnel quantity
func SetSamHTTPPort ¶
SetSamHTTPPort sets the port of the client's SAM bridge
func SetSamHTTPPortInt ¶
SetSamHTTPPortInt sets the port of the client's SAM bridge
func SetSamHTTPRequest ¶
SetSamHTTPRequest sets the initial request URL for the SamHTTP connection
func SetSamHTTPTimeout ¶
SetSamHTTPTimeout sets the timeout of the SamHTTP connection
func SetSamHTTPTunLength ¶
SetSamHTTPTunLength set's the symmetric inbound and outbound tunnel lengths
func SetTunLength ¶
SetTunLength set's the symmetric inbound and outbound tunnel lengths
Types ¶
type SamHTTP ¶
type SamHTTP struct {
// contains filtered or unexported fields
}
SamHTTP is an HTTP proxy which requests resources from the i2p network using the same unique destination
func NewSamHTTPFromOptions ¶
NewSamHTTPFromOptions creates a new SamHTTP connection manager for a single eepSite
func (*SamHTTP) CleanupClient ¶
func (samConn *SamHTTP) CleanupClient()
CleanupClient completely tears down a SamHTTP client
func (*SamHTTP) Dial ¶
Dial is a custom Dialer function that allows us to keep the same i2p destination on a per-eepSite basis
func (*SamHTTP) ScannerText ¶
type SamList ¶
type SamList struct {
// contains filtered or unexported fields
}
SamList is a manager which guarantee's unique destinations for websites retrieved over the SAM bridge
func CreateSamList ¶
CreateSamList initializes a SamList
func (*SamList) CleanupClient ¶
func (samStack *SamList) CleanupClient()
CleanupClient tears down all SamList members
func (*SamList) CopyRequest ¶
func (*SamList) ReadDelete ¶
ReadDelete closes the SamList
func (*SamList) ReadRequest ¶
func (samStack *SamList) ReadRequest()
ReadRequest checks the pipes for new URLs to request
func (*SamList) SendClientRequestHTTP ¶
func (*SamList) WriteResponses ¶
func (samStack *SamList) WriteResponses()
WriteResponses writes the responses to the pipes
type SamURL ¶
type SamURL struct {
// contains filtered or unexported fields
}
SamURL manages the recieve pipes for SamHTTP request targets
func NewSamURLHTTP ¶
NewSamURLHTTP instantiates a SamURL
func (*SamURL) CleanupDirectory ¶
func (subURL *SamURL) CleanupDirectory()