Documentation ¶
Index ¶
- Constants
- func GenerateCertificate(rsaBits int, caCfg *x509.Certificate, caPrivKey *rsa.PrivateKey, ...) ([]byte, []byte, error)
- func GenerateCertificateAuthority(rsaBits int, validity time.Duration) (*x509.Certificate, []byte, []byte, *rsa.PrivateKey, error)
- func GetPublicIP(stunAddr string) (net.IP, error)
- func HandleTestConn(verbose bool, conn net.Conn, benchmarkLimit int64) error
- func IsClosedErr(err any) bool
- func PipeShellCommand(command string, src io.Reader, dst io.Writer) error
Constants ¶
View Source
const ( RoleSwitchListener = "switch-listener" RoleSwitchClient = "switch-client" RoleAdapterListener = "adapter-listener" RoleAdapterClient = "adapter-client" RoleBenchmarkListener = "benchmark-listener" RoleBenchmarkClient = "benchmark-client" )
Variables ¶
This section is empty.
Functions ¶
func GenerateCertificate ¶
func GenerateCertificateAuthority ¶
func GenerateCertificateAuthority(rsaBits int, validity time.Duration) (*x509.Certificate, []byte, []byte, *rsa.PrivateKey, error)
func IsClosedErr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.