Documentation ¶
Index ¶
- func DirSize(path string) (int64, error)
- func FileExists(filename string) bool
- func IsDirectory(path string) bool
- func LoadFeedConfig(filename string) (ret map[string]string)
- func Never(gitkit.Credential, *gitkit.Request) (bool, error)
- func SetAccessList(s []string) func(*EepHttpd) error
- func SetAccessListType(s string) func(*EepHttpd) error
- func SetAllowZeroIn(b bool) func(*EepHttpd) error
- func SetAllowZeroOut(b bool) func(*EepHttpd) error
- func SetCloseIdle(b bool) func(*EepHttpd) error
- func SetCloseIdleTime(u int) func(*EepHttpd) error
- func SetCloseIdleTimeMs(u int) func(*EepHttpd) error
- func SetCompress(b bool) func(*EepHttpd) error
- func SetEncrypt(b bool) func(*EepHttpd) error
- func SetFastRecieve(b bool) func(*EepHttpd) error
- func SetFeedFilePath(s string) func(*EepHttpd) error
- func SetFilePath(s string) func(*EepHttpd) error
- func SetGitURL(s string) func(*EepHttpd) error
- func SetHost(s string) func(*EepHttpd) error
- func SetHostname(s string) func(*EepHttpd) error
- func SetINIFile(s string) func(*EepHttpd) error
- func SetInBackups(u int) func(*EepHttpd) error
- func SetInLength(u int) func(*EepHttpd) error
- func SetInQuantity(u int) func(*EepHttpd) error
- func SetInVariance(i int) func(*EepHttpd) error
- func SetKeyFile(s string) func(*EepHttpd) error
- func SetLeaseSetKey(s string) func(*EepHttpd) error
- func SetLeaseSetPrivateKey(s string) func(*EepHttpd) error
- func SetLeaseSetPrivateSigningKey(s string) func(*EepHttpd) error
- func SetMessageReliability(s string) func(*EepHttpd) error
- func SetName(s string) func(*EepHttpd) error
- func SetOutBackups(u int) func(*EepHttpd) error
- func SetOutLength(u int) func(*EepHttpd) error
- func SetOutQuantity(u int) func(*EepHttpd) error
- func SetOutVariance(i int) func(*EepHttpd) error
- func SetPort(s string) func(*EepHttpd) error
- func SetReduceIdle(b bool) func(*EepHttpd) error
- func SetReduceIdleQuantity(u int) func(*EepHttpd) error
- func SetReduceIdleTime(u int) func(*EepHttpd) error
- func SetReduceIdleTimeMs(u int) func(*EepHttpd) error
- func SetSAMHost(s string) func(*EepHttpd) error
- func SetSAMPort(s string) func(*EepHttpd) error
- func SetSaveFile(b bool) func(*EepHttpd) error
- func SetServeDir(s string) func(*EepHttpd) error
- func SetSigType(s string) func(*EepHttpd) error
- func SetType(s string) func(*EepHttpd) error
- type EepHttpd
- func (f *EepHttpd) Close() error
- func (f *EepHttpd) GetType() string
- func (f *EepHttpd) HandleFile(rw http.ResponseWriter, rq *http.Request)
- func (f *EepHttpd) HandleGit(rw http.ResponseWriter, rq *http.Request)
- func (f *EepHttpd) HandleMarkdown(rw http.ResponseWriter, rq *http.Request)
- func (f *EepHttpd) HandleMissing(rw http.ResponseWriter, rq *http.Request)
- func (f *EepHttpd) HandleScript(rw http.ResponseWriter, rq *http.Request)
- func (e *EepHttpd) HandleTorrent(rw http.ResponseWriter, rq *http.Request)
- func (e *EepHttpd) HostName() string
- func (s *EepHttpd) Load() (samtunnel.SAMTunnel, error)
- func (e *EepHttpd) MakeTorrent() error
- func (e *EepHttpd) Print() string
- func (f *EepHttpd) ProxyRequest(req *http.Request) (*http.Request, error)
- func (e *EepHttpd) Pull() error
- func (e *EepHttpd) PullFeeds() error
- func (e *EepHttpd) ResetGit() error
- func (e *EepHttpd) Save() error
- func (f *EepHttpd) Serve() error
- func (f *EepHttpd) ServeHTTP(rw http.ResponseWriter, rq *http.Request)
- func (f *EepHttpd) ServeParent()
- func (f *EepHttpd) Target() string
- func (f *EepHttpd) Up() bool
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶ added in v0.0.3
func IsDirectory ¶ added in v0.0.9995
func LoadFeedConfig ¶ added in v0.0.9995
func SetAccessList ¶
SetAccessList tells the system to treat the accessList as a whitelist
func SetAccessListType ¶
SetAccessListType tells the system to treat the accessList as a whitelist
func SetAllowZeroIn ¶
SetAllowZeroIn tells the tunnel to accept zero-hop peers
func SetAllowZeroOut ¶
SetAllowZeroOut tells the tunnel to accept zero-hop peers
func SetCloseIdle ¶
SetCloseIdle tells the connection to close it's tunnels during extended idle time.
func SetCloseIdleTime ¶
SetCloseIdleTime sets the time to wait before closing tunnels to idle levels
func SetCloseIdleTimeMs ¶
SetCloseIdleTimeMs sets the time to wait before closing tunnels to idle levels in milliseconds
func SetCompress ¶
SetCompress tells clients to use compression
func SetEncrypt ¶
SetEncrypt tells the router to use an encrypted leaseset
func SetFastRecieve ¶
SetFastRecieve tells clients to use compression
func SetFeedFilePath ¶ added in v0.0.9995
SetFeedFilePath sets the path to save the config file at.
func SetFilePath ¶
SetFilePath sets the path to save the config file at.
func SetHostname ¶ added in v0.0.98
func SetINIFile ¶ added in v0.0.991
func SetInBackups ¶
SetInBackups sets the inbound tunnel backups
func SetInLength ¶
SetInLength sets the number of hops inbound
func SetInQuantity ¶
SetInQuantity sets the inbound tunnel quantity
func SetInVariance ¶
SetInVariance sets the variance of a number of hops inbound
func SetLeaseSetKey ¶
SetLeaseSetKey sets the host of the EepHttpd's SAM bridge
func SetLeaseSetPrivateKey ¶
SetLeaseSetPrivateKey sets the host of the EepHttpd's SAM bridge
func SetLeaseSetPrivateSigningKey ¶
SetLeaseSetPrivateSigningKey sets the host of the EepHttpd's SAM bridge
func SetMessageReliability ¶
SetMessageReliability sets the host of the EepHttpd's SAM bridge
func SetOutBackups ¶
SetOutBackups sets the inbound tunnel backups
func SetOutLength ¶
SetOutLength sets the number of hops outbound
func SetOutQuantity ¶
SetOutQuantity sets the outbound tunnel quantity
func SetOutVariance ¶
SetOutVariance sets the variance of a number of hops outbound
func SetReduceIdle ¶
SetReduceIdle tells the connection to reduce it's tunnels during extended idle time.
func SetReduceIdleQuantity ¶
SetReduceIdleQuantity sets minimum number of tunnels to reduce to during idle time
func SetReduceIdleTime ¶
SetReduceIdleTime sets the time to wait before reducing tunnels to idle levels
func SetReduceIdleTimeMs ¶
SetReduceIdleTimeMs sets the time to wait before reducing tunnels to idle levels in milliseconds
func SetSAMHost ¶
SetSAMHost sets the host of the EepHttpd's SAM bridge
func SetSAMPort ¶
SetSAMPort sets the port of the EepHttpd's SAM bridge using a string
func SetSaveFile ¶
SetSaveFile tells the router to save the tunnel's keys long-term
func SetServeDir ¶
SetServeDir sets the path to the directory you want to serve
func SetSigType ¶
SetSigType sets the type of the forwarder server
Types ¶
type EepHttpd ¶
type EepHttpd struct { *samtracker.SamTracker *gitkit.Server *watcher.Watcher ServeDir string GitRepo *git.Repository GitURL string Hostname string IniFile string // contains filtered or unexported fields }
EepHttpd is a structure which automatically configured the forwarding of a local service to i2p over the SAM API.
func NewEepHttpd ¶
NewEepHttpd makes a new SAM forwarder with default options, accepts host:port arguments
func NewEepHttpdFromOptions ¶
NewEepHttpdFromOptions makes a new SAM forwarder with default options, accepts host:port arguments
func (*EepHttpd) HandleFile ¶
func (f *EepHttpd) HandleFile(rw http.ResponseWriter, rq *http.Request)
func (*EepHttpd) HandleGit ¶ added in v0.0.91
func (f *EepHttpd) HandleGit(rw http.ResponseWriter, rq *http.Request)
func (*EepHttpd) HandleMarkdown ¶
func (f *EepHttpd) HandleMarkdown(rw http.ResponseWriter, rq *http.Request)
func (*EepHttpd) HandleMissing ¶
func (f *EepHttpd) HandleMissing(rw http.ResponseWriter, rq *http.Request)
func (*EepHttpd) HandleScript ¶
func (f *EepHttpd) HandleScript(rw http.ResponseWriter, rq *http.Request)
func (*EepHttpd) HandleTorrent ¶ added in v0.0.9991
func (e *EepHttpd) HandleTorrent(rw http.ResponseWriter, rq *http.Request)
func (*EepHttpd) MakeTorrent ¶ added in v0.0.98
func (*EepHttpd) ProxyRequest ¶ added in v0.0.98
func (*EepHttpd) Serve ¶
Serve starts the SAM connection and and forwards the local host:port to i2p
func (*EepHttpd) ServeParent ¶
func (f *EepHttpd) ServeParent()