Documentation ¶
Index ¶
- func GenerateRandomBytes(n int) ([]byte, error)
- func SetAccessList(s []string) func(*RepoSam) error
- func SetAccessListType(s string) func(*RepoSam) error
- func SetAllowZeroIn(b bool) func(*RepoSam) error
- func SetAllowZeroOut(b bool) func(*RepoSam) error
- func SetCloseIdle(b bool) func(*RepoSam) error
- func SetCloseIdleTime(u int) func(*RepoSam) error
- func SetCloseIdleTimeMs(u int) func(*RepoSam) error
- func SetCompress(b bool) func(*RepoSam) error
- func SetDescription(s string) func(*RepoSam) error
- func SetEncrypt(b bool) func(*RepoSam) error
- func SetFastRecieve(b bool) func(*RepoSam) error
- func SetFilePath(s string) func(*RepoSam) error
- func SetGenContents(b bool) func(*RepoSam) error
- func SetHost(s string) func(*RepoSam) error
- func SetInBackups(u int) func(*RepoSam) error
- func SetInLength(u int) func(*RepoSam) error
- func SetInQuantity(u int) func(*RepoSam) error
- func SetInVariance(i int) func(*RepoSam) error
- func SetKeyFile(s string) func(*RepoSam) error
- func SetLeaseSetKey(s string) func(*RepoSam) error
- func SetLeaseSetPrivateKey(s string) func(*RepoSam) error
- func SetLeaseSetPrivateSigningKey(s string) func(*RepoSam) error
- func SetMaintainerOverride(s string) func(*RepoSam) error
- func SetMessageReliability(s string) func(*RepoSam) error
- func SetName(s string) func(*RepoSam) error
- func SetOrigin(s string) func(*RepoSam) error
- func SetOutBackups(u int) func(*RepoSam) error
- func SetOutLength(u int) func(*RepoSam) error
- func SetOutQuantity(u int) func(*RepoSam) error
- func SetOutVariance(i int) func(*RepoSam) error
- func SetPort(s string) func(*RepoSam) error
- func SetPrivateKey(s []byte) func(*RepoSam) error
- func SetReduceIdle(b bool) func(*RepoSam) error
- func SetReduceIdleQuantity(u int) func(*RepoSam) error
- func SetReduceIdleTime(u int) func(*RepoSam) error
- func SetReduceIdleTimeMs(u int) func(*RepoSam) error
- func SetSAMHost(s string) func(*RepoSam) error
- func SetSAMPort(s string) func(*RepoSam) error
- func SetSaveFile(b bool) func(*RepoSam) error
- func SetServeDir(s string) func(*RepoSam) error
- func SetSigType(s string) func(*RepoSam) error
- func SetType(s string) func(*RepoSam) error
- func SetWatch(b bool) func(*RepoSam) error
- func SetWatchDir(s string) func(*RepoSam) error
- func SetWatchInterval(b int) func(*RepoSam) error
- type Option
- type RepoSam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomBytes ¶
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 SetDescription ¶
SetDescription sets the maintainer override for the apt repo
func SetEncrypt ¶
SetEncrypt tells the router to use an encrypted leaseset
func SetFastRecieve ¶
SetFastRecieve tells clients to use compression
func SetFilePath ¶
SetFilePath sets the path to save the config file at.
func SetGenContents ¶
SetCloseIdle tells the connection to close it's tunnels during extended idle time.
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 RepoSam's SAM bridge
func SetLeaseSetPrivateKey ¶
SetLeaseSetPrivateKey sets the host of the RepoSam's SAM bridge
func SetLeaseSetPrivateSigningKey ¶
SetLeaseSetPrivateSigningKey sets the host of the RepoSam's SAM bridge
func SetMaintainerOverride ¶
SetMaintainerOverride sets the maintainer override for the apt repo
func SetMessageReliability ¶
SetMessageReliability sets the host of the RepoSam'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 SetPrivateKey ¶
SetPrivateKey sets the maintainer override for the apt repo
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 RepoSam's SAM bridge
func SetSAMPort ¶
SetSAMPort sets the port of the RepoSam'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
func SetWatchDir ¶
SetWatchDir sets the path to the directory you want to serve
func SetWatchInterval ¶
SetWatchInterval tells the connection to close it's tunnels during extended idle time.
Types ¶
type RepoSam ¶
type RepoSam struct { *samforwarder.SAMForwarder *repogen.Repo // contains filtered or unexported fields }
RepoSam is a structure which automatically configured the forwarding of a local service to i2p over the SAM API.
func NewRepoSam ¶
NewRepoSam makes a new SAM forwarder with default options, accepts host:port arguments
func NewRepoSamFromOptions ¶
NewRepoSamFromOptions makes a new SAM forwarder with default options, accepts host:port arguments
func (*RepoSam) ServeParent ¶
func (f *RepoSam) ServeParent()