option

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	InputFilePath    string `long:"input" description:"input file path" required:"true"`
	OutputFilePath   string `long:"output" description:"output file path" required:"true"`
	StatusFilePath   string `long:"status" description:"status file path" required:"true" default:"-"`
	MetadataFilePath string `long:"metadata" description:"metadata file path" required:"true" default:"-"`

	NumWorkers               int   `long:"num-workers" description:"number of workers" default:"32"`
	NumShards                int64 `long:"num-shards" description:"number of shards" default:"1"`
	Shard                    int64 `long:"shard" description:"shard" default:"0"`
	MaxTries                 int   `long:"max-tries" description:"max tries" default:"2"`
	MaxRuntimePerTaskSeconds int   `long:"max-runtime-per-task-seconds" description:"max runtime per task seconds" default:"8"`

	Method  string `long:"method" description:"method" default:"GET"`
	Port    uint16 `long:"port" description:"port" default:"80"`
	Path    string `long:"path" description:"path" default:"/"`
	Host    string `long:"host" description:"http host header, leave it blank to use the IP address" default:""`
	Scheme  string `long:"scheme" description:"scheme" default:"http"`
	Timeout int    `long:"timeout" description:"timeout" default:"4"`

	Version func() `long:"version" description:"print version and exit" json:"-"`
}

Jump to

Keyboard shortcuts

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