Versions in this module Expand all Collapse all v1 v1.0.0 Sep 1, 2023 Changes in this version + const UA + const VERSION + type Client struct + func NewClient(c *Config) (*Client, error) + func (c *Client) Track(r *EventRequest) (*EventResponse, error) + func (c *Client) TrackBatch(rs []*EventRequest) (*EventResponse, error) + type Config struct + Appk string + HttpClient *http.Client + ServerUrl string + type DataMap map[string]any + func (m *DataMap) GetStr(k string) string + func (m *DataMap) TrimKeys() + type Event struct + Cdid string + Eid string + Err []*EventErr + Props DataMap + Ts int64 + type EventErr struct + Prop string + Type string + Value any + type EventRequest struct + Adtk uint8 + Appk string + Appv string + BasicProps DataMap + Brand string + Bundle string + Carrier string + Contype uint8 + Dtype uint8 + Events []*Event + Fit int64 + Flt int64 + Gaid UUID + Gcy string + Gp uint8 + Height uint32 + Idfa UUID + Idfv UUID + Ip string + Jb uint8 + Lang string + Make string + Mccmnc string + Model string + Ntf uint8 + Oaid string + Os Os + Osv string + Rid string + Sco Sco + Sdk uint8 + Sdkv string + Session string + Ssid string + Ts int64 + Tz string + Ua string + Width uint32 + Zo int16 + func (r *EventRequest) AddEvent(e *Event) + type EventResponse struct + Code int + Events []*Event + Msg string + type Os uint8 + const OsAndroid + const OsHarmony + const OsIOS + const OsLinux + const OsMac + const OsWindows + type Sco uint8 + const ScoLandscape + const ScoPortrait + const ScoUnknown + type UUID string + func (x *UUID) UnmarshalJSON(v []byte) error