http

package
v0.0.0-...-2a6e6a1 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Run is ...

func Use

func Use(data core.Config)

Use is ...

Types

type CertificateFunc

type CertificateFunc func(*tls.ClientHelloInfo) (*tls.Certificate, error)

CertificateFunc is ...

func GetCert

func GetCert(host string, domains string) CertificateFunc

GetCert is ...

type Config

type Config struct {
	Host       string `default:"localhost"`
	Port       string `default:"8000"`
	PrivateDir string `default:".private"`
	AppendWWW  bool   `default:"false"`

	//* OpenSSL Information
	OpenSSLCommand    string `default:""`
	CountryCode       string `default:"."`
	City              string `default:"."`
	StateOrProvidence string `default:"."`
	Organization      string `default:"."`
	OrganizationUnit  string `default:"."`
}

Config is ...

type Handler

type Handler struct {
	ID      int
	Handler HandlerFunc
}

Handler is ...

type HandlerFunc

type HandlerFunc func(Reader) Writer

HandlerFunc is ...

type Package

type Package struct {
	AddDomain func(key string, handler func(http.ResponseWriter, *http.Request))
}

Package is ...

func GetPackage

func GetPackage() Package

GetPackage is ...

type Reader

type Reader struct {
}

Reader is ...

type Writer

type Writer struct {
}

Writer is ...

Jump to

Keyboard shortcuts

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