Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAPIKeyNotProvided = fmt.Errorf("API Key or client must be provided")
)
Functions ¶
func NewRudderStackTracker ¶
func NewRudderStackTracker(config RudderStackConfig) (track.Trackable, error)
Types ¶
type RudderStackConfig ¶
type RudderStackConfig struct {
// RudderStack URL
URL string
// 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.