Documentation
¶
Index ¶
- Constants
- func CaCertSetup() (caCert *x509.Certificate, caPrivateKey *rsa.PrivateKey, err error)
- func CopyDataOriginalDestination(ctx context.Context, waitgroup *sync.WaitGroup, toOriginal chan Data, ...)
- func DtlsConfigSetup(caCert *x509.Certificate, caPrivateKey *rsa.PrivateKey) (config *dtls.Config, err error)
- func ListenTcp(ctx context.Context, waitgroup *sync.WaitGroup, ipAddress, port string, ...) (err error)
- func ListenUdp(ctx context.Context, waitgroup *sync.WaitGroup, ipAddress, port string, ...) (err error)
- func Setup() (toOriginal chan Data, sockets SocketMap, toDestination DataMap, ...)
- func TlsConfigSetup(caCert *x509.Certificate, caPrivateKey *rsa.PrivateKey) (config *tls.Config, err error)
- type Conn
- func (connection *Conn) Close() (err error)
- func (connection *Conn) LocalAddr() (address net.Addr)
- func (connection *Conn) Read(buffer []byte) (length int, err error)
- func (connection *Conn) RemoteAddr() (address net.Addr)
- func (connection *Conn) SetDeadline(time time.Time) (err error)
- func (connection *Conn) SetReadDeadline(time time.Time) (err error)
- func (connection *Conn) SetWriteDeadline(time time.Time) (err error)
- func (connection *Conn) Write(buffer []byte) (length int, err error)
- type Data
- type DataMap
- type Socket
- type SocketMap
Constants ¶
View Source
const (
SO_ORIGINAL_DST = 80
)
Variables ¶
This section is empty.
Functions ¶
func CaCertSetup ¶ added in v0.2.1
func CaCertSetup() (caCert *x509.Certificate, caPrivateKey *rsa.PrivateKey, err error)
func CopyDataOriginalDestination ¶ added in v0.2.1
func DtlsConfigSetup ¶ added in v0.2.1
func DtlsConfigSetup(caCert *x509.Certificate, caPrivateKey *rsa.PrivateKey) (config *dtls.Config, err error)
func TlsConfigSetup ¶ added in v0.2.1
func TlsConfigSetup(caCert *x509.Certificate, caPrivateKey *rsa.PrivateKey) (config *tls.Config, err error)
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
func (*Conn) SetWriteDeadline ¶
Click to show internal directories.
Click to hide internal directories.