Documentation
¶
Overview ¶
Package config owns command-line, environment and config-file parsing. github.com/lfhy/flag supplies one precedence model for all three sources: command line > environment > config file > defaults.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrHelp = lfyflag.ErrHelp
ErrHelp is returned when the user asks for --help/-h.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
InputPath string
OutputPath string
CSVPath string
UserDevice string
H2CDevice string
C2HDevice string
Cores uint
ChunkBytes uint64
LegacyPackets bool
MmapRegisters bool
RingSlots uint
H2CSlotBytes uint64
C2HRequestBytes uint64
PacketRequestBytes uint64
PollInterval time.Duration
DrainIdle time.Duration
ResetTimeout time.Duration
StartTimeout time.Duration
ProgressInterval time.Duration
MaxProcs uint
Progress bool
}
Config is the fully typed application configuration after all sources have been merged and validated.