Documentation
¶
Overview ¶
Package runner contains the internal logic
Index ¶
Constants ¶
View Source
const ConfigDefaultFilename = "notify.conf"
ConfigDefaultFilename containing configuration
View Source
const Version = `0.0.1`
Version is the current version
Variables ¶
This section is empty.
Functions ¶
func CheckConfigExists ¶
CheckConfigExists in the specified path
func GetConfigDirectory ¶
GetConfigDirectory from the system
Types ¶
type ConfigFile ¶
type ConfigFile struct {
BIID string `yaml:"burp_biid,omitempty"`
// Slack
SlackWebHookURL string `yaml:"slack_webhook_url,omitempty"`
SlackUsername string `yaml:"slack_username,omitempty"`
SlackChannel string `yaml:"slack_channel,omitempty"`
Slack bool `yaml:"slack,omitempty"`
// Discord
DiscordWebHookURL string `yaml:"discord_webhook_url,omitempty"`
DiscordWebHookUsername string `yaml:"discord_username,omitempty"`
DiscordWebHookAvatarURL string `yaml:"discord_avatar,omitempty"`
Discord bool `yaml:"discord,omitempty"`
Interval int `yaml:"interval,omitempty"`
HTTPMessage string `yaml:"http_message,omitempty"`
DNSMessage string `yaml:"dns_message,omitempty"`
}
ConfigFile structure
func UnmarshalRead ¶
func UnmarshalRead(file string) (ConfigFile, error)
UnmarshalRead the config file from location
func (*ConfigFile) MarshalWrite ¶
func (c *ConfigFile) MarshalWrite(file string) error
MarshalWrite to location
type Options ¶
type Options struct {
BIID string
SlackWebHookURL string
SlackUsername string
SlackChannel string
Slack bool
DiscordWebHookURL string
DiscordWebHookUsername string
DiscordWebHookAvatarURL string
Discord bool
Verbose bool
NoColor bool
Silent bool
Version bool
Interval int
InterceptBIID bool
InterceptBIIDTimeout int
HTTPMessage string
DNSMessage string
}
Options of the internal runner
func ParseConfigFileOrOptions ¶
func ParseConfigFileOrOptions() *Options
ParseConfigFileOrOptions combining all settings
func (*Options) MergeFromConfig ¶
MergeFromConfig with existing options
Click to show internal directories.
Click to hide internal directories.