service

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service processes events and stores them in database access object

func New

func New(
	daoService *dao.DAO,
	userAgentParser *uaparser.Parser,
	geoIPService geoip.Service,
) *Service

New creates processing service

func (*Service) Run

func (s *Service) Run()

Run process the events from the channel and save them in datastore (click house)

func (*Service) SaveAsync

func (s *Service) SaveAsync(event *types.Event)

SaveAsync saves an event asynchronously

Jump to

Keyboard shortcuts

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