Documentation ¶
Index ¶
- type Option
- type Options
- type Store
- type StoreEvent
- type Tracker
- func (t *Tracker) Action(a *contexts.Action, opts ...event.Option) error
- func (t *Tracker) Alias(opts ...event.Option) error
- func (t *Tracker) Close() error
- func (t *Tracker) Group(g *contexts.Group, opts ...event.Option) error
- func (t *Tracker) Identify(u *contexts.User, opts ...event.Option) error
- func (t *Tracker) Page(page *contexts.Page, opts ...event.Option) error
- func (t *Tracker) Screen(opts ...event.Option) error
- func (t *Tracker) Session(id string, opts ...event.Option) error
- func (t *Tracker) SetOption(opt event.Option) *Tracker
- func (t *Tracker) Timing(te *contexts.Timing, opts ...event.Option) error
- func (t *Tracker) TimingStart(cat, label, variable string) *timer
- func (t *Tracker) Track(typ event.Type, opts ...event.Option) error
- func (t *Tracker) Transaction(opts ...event.Option) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { CollectorURL string AppInfo *contexts.App Platform string TrackingID string QueueBuffer int }
func (Options) EventOptions ¶
type Store ¶
type Store interface { Set(*event.Event) error Update(*StoreEvent) error Remove(*StoreEvent) error Get(string) (*StoreEvent, error) GetAll() ([]*StoreEvent, error) }
func NewMemStore ¶
type StoreEvent ¶
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
func (*Tracker) TimingStart ¶
Click to show internal directories.
Click to hide internal directories.