sentry_store

package
v0.0.0-...-b93a57f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 23, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallsignEmail

type CallsignEmail struct {
	Callsign string
	Email    string
}

type CallsignTime

type CallsignTime struct {
	Callsign string
	LastSeen time.Time
}

type EmailAddressStore

type EmailAddressStore interface {
	AddEmail(callsign, email string) error
	GetEmail(callsign string) (string, bool, error)
	ListEmail() ([]CallsignEmail, error)
	RemoveEmail(callsign string) error
}

type EntryStore

type EntryStore interface {
	AddLive(callsign string) error
	CountLive() (int, error)
	GetLive(callsign string) (time.Time, bool, error)
	ListLive(ts time.Time) ([]CallsignTime, error)
	RemoveLive(callsign string, ts time.Time) error
	LastSeenLive() (time.Time, error)
	LastSeenDead() (time.Time, error)

	AddDead(callsign string, ts time.Time) error
	CountDead() (int, error)
	GetDead(callsign string) (time.Time, bool, error)
	ListDead() ([]CallsignTime, error)
	RemoveDead(callsign string) error
}

type Store

type Store interface {
	EmailAddressStore
	EntryStore
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL