helper

package
v0.0.0-...-bf09db0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestToContext

func RequestToContext(r *http.Request) context.Context

RequestToContext of helper...

func ServeCORS

func ServeCORS(w http.ResponseWriter, r *http.Request)

ServeCORS ...

func TLSConfig

func TLSConfig(conf *TLS) (*tls.Config, error)

TLSConfig ...

Types

type TLS

type TLS struct {
	CertFile     string `json:"cert_file"`
	KeyFile      string `json:"key_file"`
	ClientCAFile string `json:"client_ca_file"`
}

Jump to

Keyboard shortcuts

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