tlsflags

package
v0.0.0-...-edb81cd Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlagSet

type FlagSet interface {
	DurationVar(varPtr *time.Duration, name string, value time.Duration, doc string)
	IntVar(varPtr *int, name string, value int, doc string)
	StringVar(varPtr *string, name, value, doc string)
	Uint64Var(varPtr *uint64, name string, value uint64, doc string)
}

FlagSet matches flag.FlagSet and pflag.FlagSet

type Flags

type Flags struct {
	KeyFile,
	CertFile,
	CAFile string
}

func Bind

func Bind(flags FlagSet) (f *Flags)

func (*Flags) Bind

func (f *Flags) Bind(flags FlagSet, prefix string)

func (*Flags) Config

func (f *Flags) Config() (cfg *tls.Config)

Jump to

Keyboard shortcuts

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