listen

package
v0.0.0-...-fb47ef5 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCHTTPMux

func GRPCHTTPMux(httphandler http.Handler, grpchandler http.Handler) http.Handler

func NewDynamicTLSConfig

func NewDynamicTLSConfig(ctx context.Context, certfile, keyfile string) (*tls.Config, error)

func ServeContext

func ServeContext(ctx context.Context, listen string, handler http.Handler, cert, key string) error

func ServeHTTPContext

func ServeHTTPContext(ctx context.Context, listen string, handler http.Handler) error

func TLSConfig

func TLSConfig(cafile, certfile, keyfile string) (*tls.Config, error)

Types

type DynamicCertificate

type DynamicCertificate struct {
	// contains filtered or unexported fields
}

func (*DynamicCertificate) GetConfigForClient

func (c *DynamicCertificate) GetConfigForClient(hello *tls.ClientHelloInfo) (*tls.Config, error)

func (*DynamicCertificate) Reload

func (c *DynamicCertificate) Reload(ctx context.Context) error

func (*DynamicCertificate) Watch

func (c *DynamicCertificate) Watch(ctx context.Context) error

Jump to

Keyboard shortcuts

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