Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CFG = &Config{}
Functions ¶
Types ¶
type Config ¶
type Config struct {
IgnorePID bool
ShowVersion bool
JSON bool
Listen string
Command string
AuthToken string
// AllowedOrigins is a comma-separated list of origin host patterns
// allowed to open the viewer websocket from another origin (e.g.
// "crg.eti.br,localhost:1313"; filepath.Match wildcards work). Empty
// keeps the library default: same-origin only.
AllowedOrigins string
Term string
ColorTerm string
Path string
InitFile string
}
func (*Config) OriginPatterns ¶ added in v0.0.30
OriginPatterns returns AllowedOrigins as a pattern slice, nil when unset.
Click to show internal directories.
Click to hide internal directories.