acme

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PolicyManager

type PolicyManager interface {
	HostPolicy(ctx context.Context, host string) error
}

PolicyManager is a

type Server

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

Server contains all logic to handle both on port http and https

func NewServer

func NewServer(policyManager PolicyManager, certPath string) *Server

NewServer creates acme.Server

func (*Server) Start

func (s *Server) Start(handler http.Handler) error

Start starts both http and https servers and initialize acme object NOTE: this methid is a blocking call, either run this as last statement or run it with a go command

Jump to

Keyboard shortcuts

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