options

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ListenOn      string
	ServerName    string
	Echo          bool
	Response      string
	ListResponses bool
	Trace         bool
	Version       bool
	JSON          bool
	TLS           TLSOptions
}

func NewDefault

func NewDefault() Options

func (*Options) AddFlags

func (o *Options) AddFlags(fs *pflag.FlagSet)

func (*Options) Validate

func (o *Options) Validate() error

type TLSOptions

type TLSOptions struct {
	Enabled   bool
	Directory string
	Hostnames []string
}

func (*TLSOptions) AddFlags

func (o *TLSOptions) AddFlags(fs *pflag.FlagSet)

func (*TLSOptions) Validate

func (o *TLSOptions) Validate() error

Jump to

Keyboard shortcuts

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