Versions in this module Expand all Collapse all v1 v1.1.0 Jul 21, 2016 Changes in this version + type CallbackResult struct + Count int + Status int v1.0.0 Apr 22, 2016 Changes in this version + const APP_ID + const COLOR_DEPTH + const CONTEXT + const CONTEXT_ENCODED + const DATA + const DB_COLUMN_EVENT + const DB_COLUMN_ID + const DB_DRIVER + const DB_TABLE_NAME + const DEFAULT_BASE_64 + const DEFAULT_BYTE_LIMIT_GET + const DEFAULT_BYTE_LIMIT_POST + const DEFAULT_DB_NAME + const DEFAULT_PLATFORM + const DEFAULT_PROTOCOL + const DEFAULT_REQ_TYPE + const DEFAULT_SEND_LIMIT + const DOMAIN_UID + const EID + const EVENT + const EVENT_ECOMM + const EVENT_ECOMM_ITEM + const EVENT_PAGE_VIEW + const EVENT_STRUCTURED + const EVENT_UNSTRUCTURED + const GET_PROTOCOL_PATH + const IP_ADDRESS + const LANGUAGE + const NAMESPACE + const NETWORK_UID + const PAGE_REFR + const PAGE_TITLE + const PAGE_URL + const PLATFORM + const POST_CONTENT_TYPE + const POST_PROTOCOL_VENDOR + const POST_PROTOCOL_VERSION + const POST_STM_BYTES + const POST_WRAPPER_BYTES + const RESOLUTION + const SCHEMA + const SCHEMA_CONTEXTS + const SCHEMA_PAYLOAD_DATA + const SCHEMA_SCREEN_VIEW + const SCHEMA_UNSTRUCT_EVENT + const SCHEMA_USER_TIMINGS + const SENT_TIMESTAMP + const SE_ACTION + const SE_CATEGORY + const SE_LABEL + const SE_PROPERTY + const SE_VALUE + const SV_ID + const SV_NAME + const TIMESTAMP + const TIMEZONE + const TI_ITEM_CATEGORY + const TI_ITEM_CURRENCY + const TI_ITEM_ID + const TI_ITEM_NAME + const TI_ITEM_PRICE + const TI_ITEM_QUANTITY + const TI_ITEM_SKU + const TRACKER_VERSION + const TRUE_TIMESTAMP + const TR_AFFILIATION + const TR_CITY + const TR_COUNTRY + const TR_CURRENCY + const TR_ID + const TR_SHIPPING + const TR_STATE + const TR_TAX + const TR_TOTAL + const T_VERSION + const UID + const UNSTRUCTURED + const UNSTRUCTURED_ENCODED + const USERAGENT + const UT_CATEGORY + const UT_LABEL + const UT_TIMING + const UT_VARIABLE + const VIEWPORT + func CountBytesInString(str string) int + func DeserializeMap(b []byte) (map[string]string, error) + func Float64ToString(value *float64, places int) string + func GetTimestamp() int64 + func GetTimestampString() string + func GetUUID() string + func Int64ToString(value *int64) string + func IntArrayToString(values []int, delimiter string) string + func IntToString(value int) string + func MapToJson(m interface{}) string + func MapToQueryParams(m map[string]string) url.Values + func NewFloat64(val float64) *float64 + func NewInt64(val int64) *int64 + func NewString(val string) *string + func OptionAppId(appId string) func(t *Tracker) + func OptionBase64Encode(base64Encode bool) func(t *Tracker) + func OptionByteLimitGet(byteLimitGet int) func(e *Emitter) + func OptionByteLimitPost(byteLimitPost int) func(e *Emitter) + func OptionCallback(callback func(successCount int, failureCount int)) func(e *Emitter) + func OptionDbName(dbName string) func(e *Emitter) + func OptionNamespace(namespace string) func(t *Tracker) + func OptionPlatform(platform string) func(t *Tracker) + func OptionProtocol(protocol string) func(e *Emitter) + func OptionRequestType(requestType string) func(e *Emitter) + func OptionSendLimit(sendLimit int) func(e *Emitter) + func OptionSubject(subject *Subject) func(t *Tracker) + func RequireCollectorUri(collectorUri string) func(e *Emitter) + func RequireEmitter(emitter *Emitter) func(t *Tracker) + func SerializeMap(m map[string]string) []byte + type EcommerceTransactionEvent struct + Affiliation *string + City *string + Contexts []SelfDescribingJson + Country *string + Currency *string + EventId *string + Items []EcommerceTransactionItemEvent + OrderId *string + Shipping *float64 + State *string + TaxValue *float64 + Timestamp *int64 + TotalValue *float64 + TrueTimestamp *int64 + func (e *EcommerceTransactionEvent) Init() + func (e EcommerceTransactionEvent) Get() Payload + type EcommerceTransactionItemEvent struct + Category *string + Contexts []SelfDescribingJson + EventId *string + Name *string + Price *float64 + Quantity *int64 + Sku *string + func (e *EcommerceTransactionItemEvent) Init() + func (e EcommerceTransactionItemEvent) Get() Payload + type Emitter struct + ByteLimitGet int + ByteLimitPost int + Callback func(successCount int, failureCount int) + CollectorUri string + CollectorUrl url.URL + DbName string + HttpClient http.Client + Protocol string + RequestType string + SendChannel chan bool + SendLimit int + Storage Storage + func InitEmitter(options ...func(*Emitter)) *Emitter + func (e *Emitter) Add(payload Payload) + func (e *Emitter) Flush() + func (e *Emitter) SetCollectorUri(collectorUri string) + func (e *Emitter) SetProtocol(protocol string) + func (e *Emitter) SetRequestType(requestType string) + func (e *Emitter) Stop() + func (e Emitter) GetCollectorUrl() string + func (e Emitter) IsSending() bool + type EventRow struct + type PageViewEvent struct + Contexts []SelfDescribingJson + EventId *string + PageTitle *string + PageUrl *string + Referrer *string + Timestamp *int64 + TrueTimestamp *int64 + func (e *PageViewEvent) Init() + func (e PageViewEvent) Get() Payload + type Payload struct + func InitPayload() *Payload + func (p Payload) Add(key string, value *string) + func (p Payload) AddDict(dict map[string]string) + func (p Payload) AddJson(instance map[string]interface{}, isBase64 bool, keyEncoded string, ...) + func (p Payload) Get() map[string]string + func (p Payload) String() string + type RawEventRow struct + type ScreenViewEvent struct + Contexts []SelfDescribingJson + EventId *string + Id *string + Name *string + Timestamp *int64 + TrueTimestamp *int64 + func (e *ScreenViewEvent) Init() + func (e ScreenViewEvent) Get() SelfDescribingEvent + type SelfDescribingEvent struct + Contexts []SelfDescribingJson + Event *SelfDescribingJson + EventId *string + Timestamp *int64 + TrueTimestamp *int64 + func (e *SelfDescribingEvent) Init() + func (e SelfDescribingEvent) Get(base64Encode bool) Payload + type SelfDescribingJson struct + func InitSelfDescribingJson(schema string, data interface{}) *SelfDescribingJson + func (s *SelfDescribingJson) SetDataWithMap(data map[string]interface{}) + func (s *SelfDescribingJson) SetDataWithPayload(data Payload) + func (s *SelfDescribingJson) SetDataWithSelfDescribingJson(data SelfDescribingJson) + func (s SelfDescribingJson) Get() map[string]interface{} + func (s SelfDescribingJson) String() string + type SendResult struct + type Storage struct + AddStmt *sql.Stmt + DbConn *sql.DB + DbName string + func InitStorage(dbName string) *Storage + func (s Storage) AddEventRow(payload Payload) bool + func (s Storage) DeleteAllEventRows() int64 + func (s Storage) DeleteEventRows(ids []int) int64 + func (s Storage) GetAllEventRows() []EventRow + func (s Storage) GetEventRowsWithinRange(eventRange int) []EventRow + type StructuredEvent struct + Action *string + Category *string + Contexts []SelfDescribingJson + EventId *string + Label *string + Property *string + Timestamp *int64 + TrueTimestamp *int64 + Value *float64 + func (e *StructuredEvent) Init() + func (e StructuredEvent) Get() Payload + type Subject struct + func InitSubject() *Subject + func (s Subject) Get() map[string]string + func (s Subject) SetColorDepth(depth int) + func (s Subject) SetDomainUserId(domainUserId string) + func (s Subject) SetIpAddress(ipAddress string) + func (s Subject) SetLanguage(language string) + func (s Subject) SetNetworkUserId(networkUserId string) + func (s Subject) SetScreenResolution(width int, height int) + func (s Subject) SetTimeZone(timezone string) + func (s Subject) SetUserId(userId string) + func (s Subject) SetUseragent(useragent string) + func (s Subject) SetViewPort(width int, height int) + type TimingEvent struct + Category *string + Contexts []SelfDescribingJson + EventId *string + Label *string + Timestamp *int64 + Timing *int64 + TrueTimestamp *int64 + Variable *string + func (e *TimingEvent) Init() + func (e TimingEvent) Get() SelfDescribingEvent + type Tracker struct + AppId string + Base64Encode bool + Emitter *Emitter + Namespace string + Platform string + Subject *Subject + func InitTracker(options ...func(*Tracker)) *Tracker + func (t *Tracker) SetAppId(appId string) + func (t *Tracker) SetBase64Encode(base64Encode bool) + func (t *Tracker) SetEmitter(emitter *Emitter) + func (t *Tracker) SetNamespace(namespace string) + func (t *Tracker) SetPlatform(platform string) + func (t *Tracker) SetSubject(subject *Subject) + func (t Tracker) FlushEmitter() + func (t Tracker) TrackEcommerceTransaction(e EcommerceTransactionEvent) + func (t Tracker) TrackPageView(e PageViewEvent) + func (t Tracker) TrackScreenView(e ScreenViewEvent) + func (t Tracker) TrackSelfDescribingEvent(e SelfDescribingEvent) + func (t Tracker) TrackStructEvent(e StructuredEvent) + func (t Tracker) TrackTiming(e TimingEvent) Other modules containing this package gopkg.in/snowplow/snowplow-golang-tracker.v2