Documentation ¶
Index ¶
- Constants
- func InitBatchConsumer(url string, max, timeout int) (*consumers.BatchConsumer, error)
- func InitConcurrentLoggingConsumer(filename string, hourRotate bool) (*consumers.ConcurrentLoggingConsumer, error)
- func InitDebugConsumer(url string, writeData bool, timeout int) (*consumers.DebugConsumer, error)
- func InitDefaultConsumer(url string, timeout int) (*consumers.DefaultConsumer, error)
- func InitLoggingConsumer(filename string, hourRotate bool) (*consumers.LoggingConsumer, error)
- type SensorsAnalytics
- func (sa *SensorsAnalytics) Close()
- func (sa *SensorsAnalytics) Flush()
- func (sa *SensorsAnalytics) ProfileAppend(distinctId string, properties map[string]interface{}, isLoginId bool) error
- func (sa *SensorsAnalytics) ProfileDelete(distinctId string, isLoginId bool) error
- func (sa *SensorsAnalytics) ProfileIncrement(distinctId string, properties map[string]interface{}, isLoginId bool) error
- func (sa *SensorsAnalytics) ProfileSet(distinctId string, properties map[string]interface{}, isLoginId bool) error
- func (sa *SensorsAnalytics) ProfileSetOnce(distinctId string, properties map[string]interface{}, isLoginId bool) error
- func (sa *SensorsAnalytics) ProfileUnset(distinctId string, properties map[string]interface{}, isLoginId bool) error
- func (sa *SensorsAnalytics) Track(distinctId, event string, properties map[string]interface{}, isLoginId bool) error
- func (sa *SensorsAnalytics) TrackSignup(distinctId, originId string) error
Constants ¶
View Source
const ( TRACK = "track" TRACK_SIGNUP = "track_signup" PROFILE_SET = "profile_set" PROFILE_SET_ONCE = "profile_set_once" PROFILE_INCREMENT = "profile_increment" PROFILE_APPEND = "profile_append" PROFILE_UNSET = "profile_unset" PROFILE_DELETE = "profile_delete" SDK_VERSION = "1.7.5" LIB_NAME = "Golang" MAX_ID_LEN = 255 )
Variables ¶
This section is empty.
Functions ¶
func InitBatchConsumer ¶
func InitBatchConsumer(url string, max, timeout int) (*consumers.BatchConsumer, error)
func InitConcurrentLoggingConsumer ¶
func InitConcurrentLoggingConsumer(filename string, hourRotate bool) (*consumers.ConcurrentLoggingConsumer, error)
func InitDebugConsumer ¶
func InitDefaultConsumer ¶
func InitDefaultConsumer(url string, timeout int) (*consumers.DefaultConsumer, error)
func InitLoggingConsumer ¶
func InitLoggingConsumer(filename string, hourRotate bool) (*consumers.LoggingConsumer, error)
Types ¶
type SensorsAnalytics ¶
func InitSensorsAnalytics ¶
func InitSensorsAnalytics(c consumers.Consumer, projectName string, timeFree bool) SensorsAnalytics
func (*SensorsAnalytics) Close ¶
func (sa *SensorsAnalytics) Close()
func (*SensorsAnalytics) Flush ¶
func (sa *SensorsAnalytics) Flush()
func (*SensorsAnalytics) ProfileAppend ¶
func (sa *SensorsAnalytics) ProfileAppend(distinctId string, properties map[string]interface{}, isLoginId bool) error
func (*SensorsAnalytics) ProfileDelete ¶
func (sa *SensorsAnalytics) ProfileDelete(distinctId string, isLoginId bool) error
func (*SensorsAnalytics) ProfileIncrement ¶
func (sa *SensorsAnalytics) ProfileIncrement(distinctId string, properties map[string]interface{}, isLoginId bool) error
func (*SensorsAnalytics) ProfileSet ¶
func (sa *SensorsAnalytics) ProfileSet(distinctId string, properties map[string]interface{}, isLoginId bool) error
func (*SensorsAnalytics) ProfileSetOnce ¶
func (sa *SensorsAnalytics) ProfileSetOnce(distinctId string, properties map[string]interface{}, isLoginId bool) error
func (*SensorsAnalytics) ProfileUnset ¶
func (sa *SensorsAnalytics) ProfileUnset(distinctId string, properties map[string]interface{}, isLoginId bool) error
func (*SensorsAnalytics) Track ¶
func (sa *SensorsAnalytics) Track(distinctId, event string, properties map[string]interface{}, isLoginId bool) error
func (*SensorsAnalytics) TrackSignup ¶
func (sa *SensorsAnalytics) TrackSignup(distinctId, originId string) error
Click to show internal directories.
Click to hide internal directories.