server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartServer

func StartServer(config *config.ServerConfig, userAgent string)

StartServer spawns a server instance given a server config

Types

type IssuerService

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

IssuerService issues certificates to clients

func NewIssuerService

func NewIssuerService(config *config.ServerConfig, userAgent string) *IssuerService

NewIssuerService constructs a new instance with a predefined config

func (IssuerService) IssueCert

IssueCert issues a certificate for a valid request

func (IssuerService) OnCertificateRenewal

OnCertificateRenewal notifies the client about certificates that has been renewed server side

func (IssuerService) Ping

Ping is used to check that the service is alive

type Whitelist

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

Whitelist holds valid domains that certificates can be issued under.

func NewWhitelist

func NewWhitelist(domains []string) Whitelist

NewWhitelist creates a new instance of the Whitelist struct

Jump to

Keyboard shortcuts

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