Documentation ¶
Index ¶
- func BidirectCopy(left io.ReadWriteCloser, right io.ReadWriteCloser) (int, int, error)
- func GenCertificate(priv ed25519.PrivateKey) ([]byte, []byte, error)
- func GenKeyPEM() ([]byte, error)
- func GenKeypairFS() (string, string, error)
- func GenTLSCertificate() (tls.Certificate, error)
- func GetLogger() *slog.Logger
- func NewHTTPServer(handler http.Handler, listen, requestLog string, tlsConfig *tls.Config) (*http.Server, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BidirectCopy ¶
func BidirectCopy(left io.ReadWriteCloser, right io.ReadWriteCloser) (int, int, error)
BidirectCopy is a helper which spawns two goroutines. Each goroutine copies data from left to right and right to left respectively.
func GenCertificate ¶
func GenCertificate(priv ed25519.PrivateKey) ([]byte, []byte, error)
func GenKeypairFS ¶
func GenTLSCertificate ¶
func GenTLSCertificate() (tls.Certificate, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.