server

package
v0.0.0-...-4697ca1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SiteFQDN       string
	TemplateFile   string
	ClientCertName string
	ClientCAPool   *x509.CertPool
	UseStaging     bool
}

Config contains the configuration forht the mTLS server instance.

type MTLSServer

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

func New

func New(config Config) (*MTLSServer, error)

New create a mTLS server with an ACME certificate manager.

func (*MTLSServer) ListenAndServe

func (m *MTLSServer) ListenAndServe()

ListenAndServe sets both the HTTP and HTTPS server to listen and serve

Jump to

Keyboard shortcuts

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