continuous_querier

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(typ string, create func(*service.ContinuousQuery, []string) (CQHandleFunc, error))

Types

type CQHandleFunc

type CQHandleFunc func(cq *service.ContinuousQuery, value interface{}) error

type Service

type Service struct {
	Logger *log.Logger
	// contains filtered or unexported fields
}

func NewService

func NewService(logger *log.Logger, searcher ekanite.Searcher, metaStore *service.MetaStore,
	stop chan struct{}, runInterval time.Duration) *Service

NewService returns a new CQ instance.

func (*Service) RunLoop

func (s *Service) RunLoop(stop chan struct{})

runs on a go routine and periodically executes CQs.

Jump to

Keyboard shortcuts

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