acmeserver

package
v0.1.57 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAddr    = ":8080"
	DefaultTLSAddr = ":9090"
)

Variables

This section is empty.

Functions

func NewHandler added in v0.0.64

func NewHandler(p *acmeservice.DNSProxy, cert *TLSService) (handler http.Handler, err error)

Types

type Config added in v0.1.46

type Config struct {
	Listen string
	TLS    TLSConfig
	Proxy  acmeservice.Config `yaml:",inline"`
}

func (Config) HasTLS added in v0.1.46

func (c Config) HasTLS() bool

type Server

type Server struct {
	TLS        *TLSService
	Proxy      *acmeservice.DNSProxy
	HTTPServer *http.Server
	Config     Config
}

func (*Server) Close added in v0.1.46

func (s *Server) Close() error

func (*Server) ListenAndServe added in v0.1.46

func (s *Server) ListenAndServe() error

func (*Server) Reload added in v0.1.46

func (s *Server) Reload() error

func (*Server) Serve

func (s *Server) Serve() error

func (*Server) ServeTLS added in v0.0.38

func (s *Server) ServeTLS() error

func (*Server) Shutdown added in v0.1.46

func (s *Server) Shutdown(ctx context.Context) error

type ServerWithConfig added in v0.1.46

type ServerWithConfig struct {
	ConfigFile string
	IsClosing  bool
	Server
}

func NewServer added in v0.1.46

func NewServer(path string) (*ServerWithConfig, error)

func (*ServerWithConfig) Close added in v0.1.46

func (s *ServerWithConfig) Close() error

func (*ServerWithConfig) ListenAndServe added in v0.1.46

func (s *ServerWithConfig) ListenAndServe() error

func (*ServerWithConfig) Reload added in v0.1.46

func (s *ServerWithConfig) Reload(ctx context.Context) (err error)

func (*ServerWithConfig) Shutdown added in v0.1.46

func (s *ServerWithConfig) Shutdown(ctx context.Context) error

type TLSConfig added in v0.1.46

type TLSConfig struct {
	CertFile string `yaml:",omitempty"`
	KeyFile  string `yaml:",omitempty"`
}

func (TLSConfig) IsEmpty added in v0.1.46

func (c TLSConfig) IsEmpty() bool

type TLSService added in v0.1.46

type TLSService struct {
	Config      TLSConfig
	Certificate tls.Certificate
}

func NewTLSService added in v0.1.46

func NewTLSService(config TLSConfig) (*TLSService, error)

func (*TLSService) GetCertificate added in v0.1.46

func (c *TLSService) GetCertificate(*tls.ClientHelloInfo) (*tls.Certificate, error)

func (*TLSService) Reload added in v0.1.46

func (c *TLSService) Reload() (err error)

Jump to

Keyboard shortcuts

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