network

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TemplateCountry      = "ES"
	TemplateOrg          = "planta7"
	TemplateOrgUnit      = "servant"
	CertificateBlockType = "CERTIFICATE"
	KeyBlockType         = "EC PRIVATE KEY"
	TempFilePattern      = "auto-tls-*"
)
View Source
const (
	ContentLength             = "Content-Length"
	ContentType               = "Content-Type"
	AccessControlAllowOrigin  = "Access-Control-Allow-Origin"
	AccessControlAllowMethods = "Access-Control-Allow-Methods"
)

Variables

This section is empty.

Functions

func GenerateAutoTLS

func GenerateAutoTLS() (string, string)

func LocalIP

func LocalIP() (net.IP, error)

Types

type LoggingResponseWriter

type LoggingResponseWriter struct {
	http.ResponseWriter
	StatusCode int
}

func NewLoggingResponseWriter

func NewLoggingResponseWriter(w http.ResponseWriter) *LoggingResponseWriter

func (*LoggingResponseWriter) WriteHeader

func (lrw *LoggingResponseWriter) WriteHeader(code int)

Jump to

Keyboard shortcuts

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