services

package
v0.0.0-...-8419220 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2016 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogService

type LogService struct {
	Ws *ws.Hub
	// contains filtered or unexported fields
}

func NewLogService

func NewLogService(cfg *libcfg.Cfg, esc *elastic.Client, ws *ws.Hub, db *bolt.DB) *LogService

func (*LogService) AddLog

func (s *LogService) AddLog(user string, logs []model.Log) error

func (*LogService) CreateIndex

func (s *LogService) CreateIndex() error

func (*LogService) RegisterFilter

func (s *LogService) RegisterFilter(f model.Filter) error

func (*LogService) Search

func (s *LogService) Search(query, level string, from, to time.Time, size, skip int) (*model.Response, error)

func (*LogService) UnregisterFilter

func (s *LogService) UnregisterFilter(id string) error

Jump to

Keyboard shortcuts

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