event

package
v0.0.0-...-8717a1f Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidEvent = errors.New("Invalid Event")
)
View Source
var (
	MetricKeys = []string{"method"}
)

Functions

func WithEventRepository

func WithEventRepository(eventRepository userland.EventRepository) func(service *service)

Types

type Service

type Service interface {
	Log(eventName string, userID int, clientInfo map[string]interface{}) error
	ListEvents(filter userland.EventFilterOptions, paging userland.EventPagingOptions) (events userland.Events, count int, err error)
	DeleteEventsByUserID(userID int) error
}

Service provide an interface to story domain service

func NewInstrumentorService

func NewInstrumentorService(latency metrics.Histogram, s Service) Service

func NewService

func NewService(options ...func(*service)) Service

Jump to

Keyboard shortcuts

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