Documentation ¶
Index ¶
Constants ¶
View Source
const ( Binary = "motifini" DefaultRepeatDelay = time.Minute DefaultEnvPrefix = "MO" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Global struct { Port uint `toml:"port"` TempDir string `toml:"temp_dir"` StateFile string `toml:"state_file"` AllowedTo []string `toml:"allowed_to"` Debug bool } `toml:"motifini"` Imessage *imessage.Config `toml:"imessage"` SecuritySpy *server.Config `toml:"security_spy"` }
Configuration for Motifini.
type Motifini ¶
type Motifini struct { Flag *Flags Conf *Config HTTP *webserver.Config SSpy *securityspy.Server Subs *subscribe.Subscribe Msgs *messenger.Messenger Info *log.Logger Error *log.Logger Debug *log.Logger }
Motifini is the main application struct.
func (*Motifini) ParseConfigFile ¶
ParseConfigFile parses and returns our configuration data. Supports a few formats for config file: xml, json, toml.
func (*Motifini) ProcessEventStream ¶
func (m *Motifini) ProcessEventStream()
ProcessEventStream processes the securityspy event stream.
Click to show internal directories.
Click to hide internal directories.