entity

package
v0.0.0-...-6edac6f Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRawEventService

func NewRawEventService(s *store.Store) *rawEventManager

Types

type RawEvent

type RawEvent struct {
	*event.Event
}

type RawEventManager

type RawEventManager interface {
	// contains filtered or unexported methods
}

type RawEventQuery

type RawEventQuery struct {
	TrackingID string    `json:"tid,omitempty" query:"tid"`
	UserID     string    `json:"uid,omitempty" query:"uid"`
	GroupID    string    `json:"gid,omitempty" query:"gid"`
	SessionID  string    `json:"sid,omitempty" query:"sid"`
	DeviceID   string    `json:"cid,omitempty" query:"cid"`
	Event      string    `json:"e,omitempty" query:"e"`
	Channel    string    `json:"c,omitempty" query:"c"`
	Platform   string    `json:"p,omitempty" query:"p"`
	Before     time.Time `json:"before,omitempty" query:"before"`
	After      time.Time `json:"after,omitempty" query:"after"`
}

type RawEventReader

type RawEventReader interface {
	List() ([]*RawEvent, error)
	Get(uuid.UUID) (*RawEvent, error)
}

type RawEventReporter

type RawEventReporter interface {
	RawEventReader
}

type RawEventWriter

type RawEventWriter interface {
	Create(*RawEvent) error
	Update(*RawEvent) error
	Delete(*RawEvent) error
}

Jump to

Keyboard shortcuts

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