helper

package
v0.0.0-...-d981aca Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

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 GenKeyPEM

func GenKeyPEM() ([]byte, error)

func GenKeypairFS

func GenKeypairFS() (string, string, error)

func GenTLSCertificate

func GenTLSCertificate() (tls.Certificate, error)

func GetLogger

func GetLogger() *slog.Logger

func NewHTTPServer

func NewHTTPServer(handler http.Handler, listen, requestLog string, tlsConfig *tls.Config) (*http.Server, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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