config

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RandomeMode = 2
	FlowMode    = 0
	ManueMode   = 1
)

Variables

View Source
var (
	// RouteSys   = &RouteSystem{}
	UsedRoutes = ""
)

Functions

func ConfigCertificate

func ConfigCertificate(mhost, mvalidFrom, mecdsaCurve string, useRand, misCa, med25519Key bool, mvalidDateLength time.Duration, mrsaBits int)

func CreateCertificate

func CreateCertificate(serverHost string, isCA bool) (configUri, base string)

func SelfCertificate

func SelfCertificate() (pemStringkeyString string)

func SetHost

func SetHost(mhost string)

func SetKey

func SetKey(key string)

Types

type ExpressConfig

type ExpressConfig struct {
	Raw      interface{}
	Multi    bool
	Protocol string
	First    []byte
}

func Config

func Config(s interface{}) ExpressConfig

func DefaultConfig

func DefaultConfig() *ExpressConfig

func ParseConfigs

func ParseConfigs(configs ...interface{}) (parsedConfig *ExpressConfig)

func (ExpressConfig) Check

func (exp ExpressConfig) Check(setconfig *ExpressConfig)

Jump to

Keyboard shortcuts

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