Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AnonymousID = uuid.MustParse("66f35d3e-40f6-4ade-909b-a6314990de53")
AnonymousID is hard-coded to a well-known value for unknown users. Callers should provide a real user id where possible.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// WriteKey is the Segment write key, and if not provided, will disable telemtry.
WriteKey string
// Endpoint is the Segment endpoint, and is optional, defaulting to segment io.
// This is normally only set for testing.
Endpoint string
// Specifies the number of events to batch together before sending. If zero the client will use a default.
// This is likely only useful for testing.
BatchSize int
// User is the user to associate with events.
User User
}
Click to show internal directories.
Click to hide internal directories.