Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAPIKeyNotProvided = fmt.Errorf("API Key or client must be provided")
)
Functions ¶
func NewFakeTracker ¶
func NewSegmentTracker ¶
func NewSegmentTracker(config SegmentTrackerConfig) (track.Trackable, error)
Types ¶
type SegmentTrackerConfig ¶
type SegmentTrackerConfig struct {
// API Key for connecting with Segment
APIKey string
// Segment client
analytics.Client
// Name of the application to be tracked
AppName string
// Version of the application to be tracked
AppVersion string
// Build of the application to be tracked
AppBuild string
// The flushing interval of the client.
Interval time.Duration
// The maximum number of messages to batch before flushing.
BatchSize int
}
Click to show internal directories.
Click to hide internal directories.