Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BaoConfigStr = ``
BaoConfigStr is used to hardcode a config file
Functions ¶
func DummyEventListener ¶
func DummyEventListener(c *BaoConfig)
DummyEventListener spins a dummy event listener if not used (e.g. cli mode)
func ReadConfigs ¶
func ReadConfigs() *[]*BaoConfig
ReadConfigs Read all configs either in base dir or embedded
Types ¶
type BaoConfig ¶
type BaoConfig struct { Event chan (bool) MightBeDead bool Connected bool Wanted bool SSHConfig *ssh.ClientConfig SSHConn *ssh.Client LocalConns []net.Listener Nickname string `json:"nickname"` Username string `json:"username"` Addr string `json:"addr"` Forwards []string `json:"forwards"` Privkey string `json:"privkey"` Checksums []string `json:"checksums"` }
BaoConfig is the main type for all things config
Click to show internal directories.
Click to hide internal directories.