Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigFile string
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Addr string `toml:"addr"` Sock string `toml:"sock"` Logfile string `toml:"logfile"` Quiet bool `toml:"quiet"` EOL string `toml:"eol"` TLS TLSOptions `toml:"tls"` Server ServerOptions `toml:"server"` }
func LoadConfig ¶
type ServerOptions ¶
type ServerOptions struct { Daemon bool `toml:"daemon"` AllowCmds []string `toml:"allow-commands"` }
func (*ServerOptions) AllowCommands ¶
func (o *ServerOptions) AllowCommands() []string
func (*ServerOptions) Clone ¶
func (o *ServerOptions) Clone() *ServerOptions
func (*ServerOptions) Fill ¶
func (o *ServerOptions) Fill(other *ServerOptions)
type TLSOptions ¶
type TLSOptions struct { CertFile string `toml:"cert"` KeyFile string `toml:"key"` CAFile string `toml:"ca"` ServerName string `toml:"server-name"` Insecure bool `toml:"insecure"` }
func (*TLSOptions) AbsPaths ¶
func (o *TLSOptions) AbsPaths()
func (*TLSOptions) Clone ¶
func (o *TLSOptions) Clone() *TLSOptions
func (*TLSOptions) Fill ¶
func (o *TLSOptions) Fill(other *TLSOptions)
Click to show internal directories.
Click to hide internal directories.