Documentation ¶
Index ¶
- type Config
- type Service
- func (service *Service) Close() error
- func (service *Service) TrackAccessGrantCreated(userID uuid.UUID)
- func (service *Service) TrackAccountVerified(userID uuid.UUID, email string)
- func (service *Service) TrackCreateUser(fields TrackCreateUserFields)
- func (service *Service) TrackEvent(eventName string, userID uuid.UUID)
- func (service *Service) TrackLinkEvent(eventName string, userID uuid.UUID, link string)
- func (service *Service) TrackProjectCreated(userID, projectID uuid.UUID, currentProjectCount int)
- func (service *Service) TrackSignedIn(userID uuid.UUID, email string)
- type TrackCreateUserFields
- type UserType
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) TrackAccessGrantCreated ¶ added in v1.27.0
TrackAccessGrantCreated sends an "Access Grant Created" event to Segment.
func (*Service) TrackAccountVerified ¶ added in v1.27.2
TrackAccountVerified sends an "Account Verified" event to Segment.
func (*Service) TrackCreateUser ¶
func (service *Service) TrackCreateUser(fields TrackCreateUserFields)
TrackCreateUser sends an "Account Created" event to Segment.
func (*Service) TrackEvent ¶ added in v1.27.0
TrackEvent sends an arbitrary event associated with user ID to Segment. It is used for tracking occurrences of client-side events.
func (*Service) TrackLinkEvent ¶ added in v1.27.2
TrackLinkEvent sends an arbitrary event and link associated with user ID to Segment. It is used for tracking occurrences of client-side events.
func (*Service) TrackProjectCreated ¶ added in v1.27.0
TrackProjectCreated sends an "Project Created" event to Segment.