server

package
v0.0.0-...-07f0968 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(configs ...func(c *Config))

Types

type Config

type Config struct {
	Log                   log.Log
	UseHttps              bool
	AppBindTo             string
	CertBindTo            string
	HostPolicy            autocert.HostPolicy
	CertReadTimeout       time.Duration
	CertReadHeaderTimeout time.Duration
	CertWriteTimeout      time.Duration
	CertCache             autocert.Cache
	Handler               http.HandlerFunc
}

Directories

Path Synopsis
copypasta from https://github.com/tomasen/realip repo appears dead so taking a copy
copypasta from https://github.com/tomasen/realip repo appears dead so taking a copy

Jump to

Keyboard shortcuts

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