Documentation
¶
Index ¶
- Constants
- type Event
- func (evt Event) MarshalJSON() ([]byte, error)
- func (evt *Event) SetAdvertisingID(advertisingID string) *Event
- func (evt *Event) SetDateValue(param EventParam, val time.Time) *Event
- func (evt *Event) SetDeviceIP(deviceIP string) *Event
- func (evt *Event) SetEventTime(eventTime time.Time) *Event
- func (evt *Event) SetName(name EventName) *Event
- func (evt *Event) SetPrice(price float64, currency string) *Event
- func (evt *Event) SetRevenue(revenue float64, currency string) *Event
- func (evt *Event) SetValue(param EventParam, val string) *Event
- type EventName
- type EventParam
- type FakeTracker
- type Tracker
Constants ¶
View Source
const ( Android deviceOS = "android" IOS deviceOS = "ios" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶ added in v1.2.1
type Event struct {
Platform deviceOS
Values map[EventParam]string
// contains filtered or unexported fields
}
func (Event) MarshalJSON ¶ added in v1.2.1
func (*Event) SetAdvertisingID ¶ added in v1.2.1
func (*Event) SetDateValue ¶ added in v1.2.1
func (evt *Event) SetDateValue(param EventParam, val time.Time) *Event
func (*Event) SetDeviceIP ¶ added in v1.2.1
func (*Event) SetEventTime ¶ added in v1.2.1
func (*Event) SetRevenue ¶ added in v1.2.1
type EventParam ¶
type EventParam string
const ( ParamRevenue EventParam = "af_revenue" ParamPrice EventParam = "af_price" ParamCurrency EventParam = "af_currency" )
type FakeTracker ¶
func (*FakeTracker) Send ¶
func (t *FakeTracker) Send(evt *Event) error
func (*FakeTracker) SetConfig ¶
func (t *FakeTracker) SetConfig(configPath string) error
Click to show internal directories.
Click to hide internal directories.