samoptions

package
v0.33.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetAccessList

func SetAccessList(s []string) func(samtunnel.SAMTunnel) error

SetAccessList tells the system to treat the AccessList as a allowlist

func SetAccessListType

func SetAccessListType(s string) func(samtunnel.SAMTunnel) error

SetAccessListType tells the system to treat the AccessList as a allowlist

func SetAllowZeroIn

func SetAllowZeroIn(b bool) func(samtunnel.SAMTunnel) error

SetAllowZeroIn tells the tunnel to accept zero-hop peers

func SetAllowZeroOut

func SetAllowZeroOut(b bool) func(samtunnel.SAMTunnel) error

SetAllowZeroOut tells the tunnel to accept zero-hop peers

func SetCloseIdle

func SetCloseIdle(b bool) func(samtunnel.SAMTunnel) error

SetCloseIdle tells the connection to close it's tunnels during extended idle time.

func SetCloseIdleTime

func SetCloseIdleTime(u int) func(samtunnel.SAMTunnel) error

SetCloseIdleTime sets the time to wait before closing tunnels to idle levels

func SetCloseIdleTimeMs

func SetCloseIdleTimeMs(u int) func(samtunnel.SAMTunnel) error

SetCloseIdleTimeMs sets the time to wait before closing tunnels to idle levels in milliseconds

func SetCompress

func SetCompress(b bool) func(samtunnel.SAMTunnel) error

SetCompress tells clients to use compression

func SetDestination

func SetDestination(s string) func(samtunnel.SAMTunnel) error

func SetEncrypt

func SetEncrypt(b bool) func(samtunnel.SAMTunnel) error

SetEncrypt tells the router to use an encrypted leaseset

func SetFastRecieve

func SetFastRecieve(b bool) func(samtunnel.SAMTunnel) error

SetFastRecieve tells clients to use compression

func SetFilePath

func SetFilePath(s string) func(samtunnel.SAMTunnel) error

SetFilePath sets the path to save the config file at.

func SetHost

func SetHost(s string) func(samtunnel.SAMTunnel) error

SetHost sets the host of the service to forward

func SetInBackups

func SetInBackups(u int) func(samtunnel.SAMTunnel) error

SetInBackups sets the inbound tunnel backups

func SetInLength

func SetInLength(u int) func(samtunnel.SAMTunnel) error

SetInLength sets the number of hops inbound

func SetInQuantity

func SetInQuantity(u int) func(samtunnel.SAMTunnel) error

SetInQuantity sets the inbound tunnel quantity

func SetInVariance

func SetInVariance(i int) func(samtunnel.SAMTunnel) error

SetInVariance sets the variance of a number of hops inbound

func SetKeyFile

func SetKeyFile(s string) func(samtunnel.SAMTunnel) error

SetKeyFile sets

func SetLeaseSetKey

func SetLeaseSetKey(s string) func(samtunnel.SAMTunnel) error

SetLeaseSetKey sets the host of the SAMForwarder's SAM bridge

func SetLeaseSetPrivateKey

func SetLeaseSetPrivateKey(s string) func(samtunnel.SAMTunnel) error

SetLeaseSetPrivateKey sets the host of the SAMForwarder's SAM bridge

func SetLeaseSetPrivateSigningKey

func SetLeaseSetPrivateSigningKey(s string) func(samtunnel.SAMTunnel) error

SetLeaseSetPrivateSigningKey sets the host of the SAMForwarder's SAM bridge

func SetMessageReliability

func SetMessageReliability(s string) func(samtunnel.SAMTunnel) error

SetMessageReliability sets the host of the SAMForwarder's SAM bridge

func SetName

func SetName(s string) func(samtunnel.SAMTunnel) error

SetName sets the host of the SAMForwarder's SAM bridge

func SetOutBackups

func SetOutBackups(u int) func(samtunnel.SAMTunnel) error

SetOutBackups sets the inbound tunnel backups

func SetOutLength

func SetOutLength(u int) func(samtunnel.SAMTunnel) error

SetOutLength sets the number of hops outbound

func SetOutQuantity

func SetOutQuantity(u int) func(samtunnel.SAMTunnel) error

SetOutQuantity sets the outbound tunnel quantity

func SetOutVariance

func SetOutVariance(i int) func(samtunnel.SAMTunnel) error

SetOutVariance sets the variance of a number of hops outbound

func SetPassword

func SetPassword(s string) func(samtunnel.SAMTunnel) error

func SetPort

func SetPort(s string) func(samtunnel.SAMTunnel) error

SetPort sets the port of the service to forward

func SetReduceIdle

func SetReduceIdle(b bool) func(samtunnel.SAMTunnel) error

SetReduceIdle tells the connection to reduce it's tunnels during extended idle time.

func SetReduceIdleQuantity

func SetReduceIdleQuantity(u int) func(samtunnel.SAMTunnel) error

SetReduceIdleQuantity sets minimum number of tunnels to reduce to during idle time

func SetReduceIdleTime

func SetReduceIdleTime(u int) func(samtunnel.SAMTunnel) error

SetReduceIdleTime sets the time to wait before reducing tunnels to idle levels

func SetReduceIdleTimeMs

func SetReduceIdleTimeMs(u int) func(samtunnel.SAMTunnel) error

SetReduceIdleTimeMs sets the time to wait before reducing tunnels to idle levels in milliseconds

func SetSAMHost

func SetSAMHost(s string) func(samtunnel.SAMTunnel) error

SetSAMHost sets the host of the SAMForwarder's SAM bridge

func SetSAMPort

func SetSAMPort(s string) func(samtunnel.SAMTunnel) error

SetSAMPort sets the port of the SAMForwarder's SAM bridge using a string

func SetSaveFile

func SetSaveFile(b bool) func(samtunnel.SAMTunnel) error

SetSaveFile tells the router to save the tunnel's keys long-term

func SetSigType

func SetSigType(s string) func(samtunnel.SAMTunnel) error

SetSigType sets the type of the forwarder server

func SetTLSConfigCertPem

func SetTLSConfigCertPem(s string) func(samtunnel.SAMTunnel) error

func SetTLSConfigKeysPem

func SetTLSConfigKeysPem(s string) func(samtunnel.SAMTunnel) error

func SetType

func SetType(s string) func(samtunnel.SAMTunnel) error

SetType sets the type of the forwarder server

func SetUseTLS

func SetUseTLS(b bool) func(samtunnel.SAMTunnel) error

Types

type Option

type Option func(samtunnel.SAMTunnel) error

Option is a SAMForwarder Option

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL