Documentation ¶
Index ¶
- Variables
- func NewWebServer(store sentry_store.Store)
- func RunReaper(sentryWorker SentryWorker, duration time.Duration, skipCooldown bool)
- func Watchdog(sentryWorker SentryWorker)
- type AprsClient
- type BoltConfig
- type CallsignTimeLive
- type Config
- type GoLevelDbConfig
- type Mail
- type MailgunConfig
- type PostgresConfig
- type RethinkConfig
- type Sentry
- type SentryWorker
Constants ¶
This section is empty.
Variables ¶
View Source
var EmptyCallsignError error = errors.New("No Callsign")
View Source
var FrameNotValidError error = errors.New("Frame Not Valid")
Functions ¶
func NewWebServer ¶
func NewWebServer(store sentry_store.Store)
func RunReaper ¶
func RunReaper(sentryWorker SentryWorker, duration time.Duration, skipCooldown bool)
func Watchdog ¶
func Watchdog(sentryWorker SentryWorker)
Types ¶
type AprsClient ¶
type AprsClient interface { Dial() error Next() bool Error() error Frame() (aprs.Frame, error) Close() error }
func NewAprsClient ¶
func NewAprsClient(server, callsign, passcode, filter string) AprsClient
type BoltConfig ¶
type BoltConfig struct {
File string
}
type CallsignTimeLive ¶
type CallsignTimeLive struct { sentry_store.CallsignTime SeenRecently bool }
type Config ¶
type Config struct { AprsServer string AprsUser string AprsPasscode string AprsFilter string Cutoff string SkipCooldown bool `json:",omitempty"` Mailgun *MailgunConfig `json:",omitempty"` BoltConfig *BoltConfig `json:",omitempty"` PostgresConfig *PostgresConfig `json:",omitempty"` GoLevelDBConfig *GoLevelDbConfig `json:",omitempty"` RethinkDBConfig *RethinkConfig `json:",omitempty"` }
type GoLevelDbConfig ¶
type GoLevelDbConfig struct {
File string
}
type Mail ¶
func NewMailgunServer ¶
type MailgunConfig ¶
type PostgresConfig ¶
type RethinkConfig ¶
type SentryWorker ¶
type SentryWorker interface { HandleMessage(frame aprs.Frame) error ReapLiveNodes() ([]sentry_store.CallsignTime, error) Email(callsign string, ts time.Time) LastSeen() (time.Time, error) }
func NewSentryWorker ¶
func NewSentryWorker(store sentry_store.Store, liveDuration time.Duration, mail Mail) SentryWorker
Source Files ¶
Click to show internal directories.
Click to hide internal directories.