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 NewService ¶
func NewService(options ...func(*service)) Service
Click to show internal directories.
Click to hide internal directories.