options

package
v0.0.0-...-677c301 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WordSepNormalizeFunc

func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName

Types

type ServerFlags

type ServerFlags struct {
	Name     string
	Host     string
	Port     int
	CertPath string
	KeyPath  string
}

ServerFlags - the flags used to setup a simple server

func DefaultFlags

func DefaultFlags() *ServerFlags

DefaultFlags - Setup Default flags for init of server For TLS certPath = "./cert.pem" keyPath = "./key.pem"

Jump to

Keyboard shortcuts

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