server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(ctx context.Context, config Config, logger *log.Logger) error

Types

type CertKey

type CertKey struct {
	CertFile string
	KeyFile  string
}

type Config

type Config struct {
	DBPath        string
	TemplateGlob  string
	Address       string
	HTTPS         bool
	HTTPSAddress  string
	HTTPSDomain   string
	HTTPSCertKeys []CertKey
}

func ConfigFromEnv

func ConfigFromEnv(prefix string) (Config, error)

Jump to

Keyboard shortcuts

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