Documentation
¶
Index ¶
Constants ¶
View Source
const SegmentKey = "AbgkrgN4cbRhAVEwlzMkHbwvrXnxHh35"
SegmentKey is the Segment write key for CircleCI.
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 {
// Send enables sending events to Segment.
Send bool
// Log enables logging events to stderr.
Log bool
// Binary will be executed with JSON-encoded events as the stdin.
Binary string
// WriteKey is the Segment write key for the CLI.
WriteKey string
// Endpoint is the Segment endpoint, and is optional, defaulting to segment io.
// This is normally only set for testing.
Endpoint string
// TestDestination, when non-nil, is added as an event destination. It lets
// tests record events and assert on them synchronously without spawning a
// subprocess or hitting the network.
TestDestination destination
Metadata Meta
}
Click to show internal directories.
Click to hide internal directories.