Documentation ¶
Index ¶
- type Criteria
- type FetchCriteria
- type Filter
- type LogEvent
- type LogStorage
- type Lookup
- type MemoryStorage
- type SqlLite3Storage
- func (storage *SqlLite3Storage) FetchEvents(criteria FetchCriteria, page int, limit int) ([]LogEvent, int)
- func (storage *SqlLite3Storage) FetchFilter(filter Filter) ([]Lookup, error)
- func (storage *SqlLite3Storage) GenerateWhere(criteria FetchCriteria) string
- func (storage *SqlLite3Storage) SaveEvent(event LogEvent) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetchCriteria ¶
type LogStorage ¶
type MemoryStorage ¶
type MemoryStorage struct {
Logs []LogEvent
}
func (*MemoryStorage) FetchEvents ¶
func (storage *MemoryStorage) FetchEvents(criteria FetchCriteria, page int, limit int) ([]LogEvent, int)
type SqlLite3Storage ¶
func NewSqlLite3Storage ¶
func NewSqlLite3Storage(dbFile string) *SqlLite3Storage
func (*SqlLite3Storage) FetchEvents ¶
func (storage *SqlLite3Storage) FetchEvents(criteria FetchCriteria, page int, limit int) ([]LogEvent, int)
func (*SqlLite3Storage) FetchFilter ¶
func (storage *SqlLite3Storage) FetchFilter(filter Filter) ([]Lookup, error)
func (*SqlLite3Storage) GenerateWhere ¶
func (storage *SqlLite3Storage) GenerateWhere(criteria FetchCriteria) string
Click to show internal directories.
Click to hide internal directories.