Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { SegmentWriteKey string `help:"segment write key" default:""` Enabled bool `help:"enable analytics reporting" default:"false"` }
Config is a configuration struct for analytics Service.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service for sending analytics.
architecture: Service
func NewService ¶
NewService creates new service for creating sending analytics.
func (*Service) TrackCreateUser ¶
func (service *Service) TrackCreateUser(fields TrackCreateUserFields)
TrackCreateUser sends an "Account Created" event to Segment.
Click to show internal directories.
Click to hide internal directories.