Documentation
¶
Index ¶
- type FlagStorage
- type MariaDBStorage
- func (s *MariaDBStorage) Close() error
- func (s *MariaDBStorage) GetByStatus(status string, limit int) ([]flag.Flag, error)
- func (s *MariaDBStorage) GetLastFlags(limit int) ([]flag.Flag, error)
- func (s *MariaDBStorage) GetStatisticsV1() (StatisticsV1, error)
- func (s *MariaDBStorage) Init() error
- func (s *MariaDBStorage) InsertFlags(flags []flag.Flag) (int64, error)
- func (s *MariaDBStorage) UpdateSentFlag(flag, status, checkSystemResponse string, sentTime time.Time) error
- type SqliteStorage
- func (s *SqliteStorage) Close() error
- func (s *SqliteStorage) GetByStatus(status string, limit int) ([]flag.Flag, error)
- func (s *SqliteStorage) GetLastFlags(limit int) ([]flag.Flag, error)
- func (s *SqliteStorage) GetStatisticsV1() (StatisticsV1, error)
- func (s *SqliteStorage) Init() error
- func (s *SqliteStorage) InsertFlags(flags []flag.Flag) (int64, error)
- func (s *SqliteStorage) UpdateSentFlag(flag, status, checkSystemResponse string, sentTime time.Time) error
- type StatisticsV1
- type StatsByExploit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlagStorage ¶
type FlagStorage interface {
Init() error
GetLastFlags(limit int) ([]flag.Flag, error)
GetByStatus(status string, limit int) ([]flag.Flag, error)
GetStatisticsV1() (StatisticsV1, error)
UpdateSentFlag(flag, status, checkSystemResponse string, sentTime time.Time) error
InsertFlags(flags []flag.Flag) (int64, error)
}
type MariaDBStorage ¶
type MariaDBStorage struct {
// contains filtered or unexported fields
}
func NewMariaDBStorage ¶
func NewMariaDBStorage(addr string) (*MariaDBStorage, error)
func (*MariaDBStorage) Close ¶
func (s *MariaDBStorage) Close() error
func (*MariaDBStorage) GetByStatus ¶
func (*MariaDBStorage) GetLastFlags ¶
func (s *MariaDBStorage) GetLastFlags(limit int) ([]flag.Flag, error)
func (*MariaDBStorage) GetStatisticsV1 ¶
func (s *MariaDBStorage) GetStatisticsV1() (StatisticsV1, error)
func (*MariaDBStorage) Init ¶
func (s *MariaDBStorage) Init() error
func (*MariaDBStorage) InsertFlags ¶
func (s *MariaDBStorage) InsertFlags(flags []flag.Flag) (int64, error)
func (*MariaDBStorage) UpdateSentFlag ¶
func (s *MariaDBStorage) UpdateSentFlag(flag, status, checkSystemResponse string, sentTime time.Time) error
type SqliteStorage ¶
type SqliteStorage struct {
// contains filtered or unexported fields
}
func NewSQliteStorage ¶
func NewSQliteStorage(path string) (*SqliteStorage, error)
func (*SqliteStorage) Close ¶
func (s *SqliteStorage) Close() error
func (*SqliteStorage) GetByStatus ¶
func (*SqliteStorage) GetLastFlags ¶
func (s *SqliteStorage) GetLastFlags(limit int) ([]flag.Flag, error)
func (*SqliteStorage) GetStatisticsV1 ¶
func (s *SqliteStorage) GetStatisticsV1() (StatisticsV1, error)
func (*SqliteStorage) Init ¶
func (s *SqliteStorage) Init() error
func (*SqliteStorage) InsertFlags ¶
func (s *SqliteStorage) InsertFlags(flags []flag.Flag) (int64, error)
func (*SqliteStorage) UpdateSentFlag ¶
func (s *SqliteStorage) UpdateSentFlag(flag, status, checkSystemResponse string, sentTime time.Time) error
type StatisticsV1 ¶
Click to show internal directories.
Click to hide internal directories.