vhosts

package
v0.0.0-...-ba02ff9 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type H

type H struct {
	FQDN       string
	Origin     string
	PrivateKey []byte
	X509Cert   []byte
}

type Record

type Record struct {
	Backend *httputil.ReverseProxy
	Cert    *tls.Certificate
}

type Vault

type Vault interface {
	Get(string) (Record, bool)
	Put(string, H) error
	Remove(string)
	Clear()
}

func NewVault

func NewVault(database *database.Connection) (Vault, error)

func TestingVault

func TestingVault(t *testing.T, s *httptest.Server) (Vault, error)

Jump to

Keyboard shortcuts

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