flags

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	IsAPIServer                  bool
	IsWorkerServer               bool
	IsWebServer                  bool
	ServerName                   string
	Environment                  string
	Version                      string
	ServerConfigurationFile      string
	ApplicationConfigurationFile string
	RoutesFile                   string
	Help                         bool
}

Flags : represents the command arguments passed at launch.

func NewFlags

func NewFlags() *Flags

NewFlags : returns a newly created 'Flags' struct.

func (*Flags) Parse

func (f *Flags) Parse(applicationConfigurationRequired bool) bool

Parse : parses the flags passed at launch.

Jump to

Keyboard shortcuts

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