Documentation ¶
Index ¶
- type LogMonitor
- type Store
- func (s *Store) Activate(logURL string) error
- func (s *Store) Deactivate(logURL string) error
- func (s *Store) Delete(logURL string) error
- func (s *Store) Get(logURL string) (*LogMonitor, error)
- func (s *Store) GetActiveLogs() ([]*LogMonitor, error)
- func (s *Store) GetInactiveLogs() ([]*LogMonitor, error)
- func (s *Store) Update(logMonitor *LogMonitor) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogMonitor ¶
type LogMonitor struct { Log string `json:"logUrl"` STH *command.GetSTHResponse `json:"sthResponse"` PubKey []byte `json:"pubKey"` Status status `json:"status"` }
LogMonitor provides information about log monitor.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements storage for log monitors.
func (*Store) Activate ¶
Activate stores a log to be monitored. If it already exists active flag will be set to true.
func (*Store) Deactivate ¶
Deactivate flags log monitor as inactive.
func (*Store) Get ¶
func (s *Store) Get(logURL string) (*LogMonitor, error)
Get retrieves log monitor.
func (*Store) GetActiveLogs ¶
func (s *Store) GetActiveLogs() ([]*LogMonitor, error)
GetActiveLogs retrieves all active log monitors.
func (*Store) GetInactiveLogs ¶
func (s *Store) GetInactiveLogs() ([]*LogMonitor, error)
GetInactiveLogs retrieves all inactive log monitors.
func (*Store) Update ¶
func (s *Store) Update(logMonitor *LogMonitor) error
Update updates a log monitor.
Click to show internal directories.
Click to hide internal directories.