-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig_base.go
More file actions
18 lines (16 loc) · 994 Bytes
/
config_base.go
File metadata and controls
18 lines (16 loc) · 994 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package main
import "time"
type SrvConfigBase struct {
Verbose bool `short:"v" long:"verbose" description:"log verbose"`
Quiet bool `short:"q" long:"quiet" description:"log quiet"`
Addr string `short:"l" long:"listen" default:"localhost:" value-name:"[host]:port"`
Proto string `long:"protocol" default:"tcp" value-name:"tcp/unix"`
Prefix string `short:"p" long:"prefix" default:"/" value-name:"url-prefix"`
BaseDir string `short:"b" long:"base-dir" default:"." value-name:"dirname"`
Suffix string `short:"s" long:"suffix" value-name:".ext"`
JSONLog bool `long:"json-log"`
Runner string `long:"runner" default:"os" value-name:"name"`
Version bool `short:"V" long:"version"`
OtelProvider string `long:"opentelemetry" choice:"stdout" choice:"otlp" choice:"otlp-http"`
Timeout time.Duration `short:"t" long:"timeout" default:"1m"`
}