Documentation ¶
Index ¶
- type AnalyticsService
- func (a *AnalyticsService) AutoBannedByAbuseProtector(userID string, email string, activeProductID string, ip string, ...) error
- func (a *AnalyticsService) AutoBannedForBannedPromptEmbeddingViolation(user *ent.User, cogReq requests.BaseCogRequest, source enttypes.SourceType, ...) error
- func (a *AnalyticsService) AutoBannedForSpecialBannedPromptEmbedding(user *ent.User, cogReq requests.BaseCogRequest, source enttypes.SourceType, ...) error
- func (a *AnalyticsService) Close()
- func (a *AnalyticsService) CreditPurchase(user *ent.User, productId string, amount int) error
- func (a *AnalyticsService) Dispatch(e Event) error
- func (a *AnalyticsService) FreeCreditsReplenished(userId uuid.UUID, email string, amount int) error
- func (a *AnalyticsService) GenerationFailed(user *ent.User, cogReq requests.BaseCogRequest, duration float64, ...) error
- func (a *AnalyticsService) GenerationFailedNSFW(user *ent.User, cogReq requests.BaseCogRequest, duration float64, ...) error
- func (a *AnalyticsService) GenerationFailedNSFWPrompt(user *ent.User, cogReq requests.BaseCogRequest, failureSource string, ...) error
- func (a *AnalyticsService) GenerationStarted(user *ent.User, cogReq requests.BaseCogRequest, source enttypes.SourceType, ...) error
- func (a *AnalyticsService) GenerationSucceeded(user *ent.User, cogReq requests.BaseCogRequest, duration float64, ...) error
- func (a *AnalyticsService) SignUp(userId uuid.UUID, email, ipAddress string, deviceInfo utils.ClientDeviceInfo) error
- func (a *AnalyticsService) Subscription(user *ent.User, productId string) error
- func (a *AnalyticsService) SubscriptionCancelled(user *ent.User, productId string) error
- func (a *AnalyticsService) SubscriptionRenewal(user *ent.User, productId string) error
- func (a *AnalyticsService) SubscriptionUpgraded(user *ent.User, oldProductId string, productId string) error
- func (a *AnalyticsService) UpscaleFailed(user *ent.User, cogReq requests.BaseCogRequest, duration float64, ...) error
- func (a *AnalyticsService) UpscaleStarted(user *ent.User, cogReq requests.BaseCogRequest, source enttypes.SourceType, ...) error
- func (a *AnalyticsService) UpscaleSucceeded(user *ent.User, cogReq requests.BaseCogRequest, duration float64, ...) error
- func (a *AnalyticsService) VoiceoverFailed(user *ent.User, cogReq requests.BaseCogRequest, duration float64, ...) error
- func (a *AnalyticsService) VoiceoverStarted(user *ent.User, cogReq requests.BaseCogRequest, source enttypes.SourceType, ...) error
- func (a *AnalyticsService) VoiceoverSucceeded(user *ent.User, cogReq requests.BaseCogRequest, duration float64, ...) error
- type Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnalyticsService ¶
func NewAnalyticsService ¶
func NewAnalyticsService() *AnalyticsService
func (*AnalyticsService) AutoBannedByAbuseProtector ¶
func (*AnalyticsService) AutoBannedForBannedPromptEmbeddingViolation ¶
func (a *AnalyticsService) AutoBannedForBannedPromptEmbeddingViolation( user *ent.User, cogReq requests.BaseCogRequest, source enttypes.SourceType, translatedPrompt string, similarToBannedPromptId string, similarityScore float64, violationCount int, ip string, ) error
func (*AnalyticsService) AutoBannedForSpecialBannedPromptEmbedding ¶
func (a *AnalyticsService) AutoBannedForSpecialBannedPromptEmbedding( user *ent.User, cogReq requests.BaseCogRequest, source enttypes.SourceType, translatedPrompt string, similarToBannedPromptId string, similarityScore float64, violationCount int, ip string, ) error
func (*AnalyticsService) Close ¶
func (a *AnalyticsService) Close()
func (*AnalyticsService) CreditPurchase ¶
Credit purchase
func (*AnalyticsService) Dispatch ¶
func (a *AnalyticsService) Dispatch(e Event) error
Dispatch to all available analytics services
func (*AnalyticsService) FreeCreditsReplenished ¶
Free credits replenished
func (*AnalyticsService) GenerationFailed ¶
func (a *AnalyticsService) GenerationFailed(user *ent.User, cogReq requests.BaseCogRequest, duration float64, failureReason string, source enttypes.SourceType, ip string) error
Generation | Failed
func (*AnalyticsService) GenerationFailedNSFW ¶
func (a *AnalyticsService) GenerationFailedNSFW(user *ent.User, cogReq requests.BaseCogRequest, duration float64, source enttypes.SourceType, ip string) error
Generation | Failed-NSFW
func (*AnalyticsService) GenerationFailedNSFWPrompt ¶
func (a *AnalyticsService) GenerationFailedNSFWPrompt( user *ent.User, cogReq requests.BaseCogRequest, failureSource string, source enttypes.SourceType, translatedPrompt string, similarToBannedPromptId string, similarityScore float64, moderationAPIReason string, moderationAPIScore float32, ip string, ) error
func (*AnalyticsService) GenerationStarted ¶
func (a *AnalyticsService) GenerationStarted(user *ent.User, cogReq requests.BaseCogRequest, source enttypes.SourceType, ip string) error
Generation | Started
func (*AnalyticsService) GenerationSucceeded ¶
func (a *AnalyticsService) GenerationSucceeded(user *ent.User, cogReq requests.BaseCogRequest, duration float64, qDuration float64, source enttypes.SourceType, ip string) error
Generation | Succeeded
func (*AnalyticsService) SignUp ¶
func (a *AnalyticsService) SignUp(userId uuid.UUID, email, ipAddress string, deviceInfo utils.ClientDeviceInfo) error
Sign Up
func (*AnalyticsService) Subscription ¶
func (a *AnalyticsService) Subscription(user *ent.User, productId string) error
New Subscription
func (*AnalyticsService) SubscriptionCancelled ¶
func (a *AnalyticsService) SubscriptionCancelled(user *ent.User, productId string) error
Cancelled Subscription
func (*AnalyticsService) SubscriptionRenewal ¶
func (a *AnalyticsService) SubscriptionRenewal(user *ent.User, productId string) error
Renewed Subscription
func (*AnalyticsService) SubscriptionUpgraded ¶
func (a *AnalyticsService) SubscriptionUpgraded(user *ent.User, oldProductId string, productId string) error
Upgraded subscription
func (*AnalyticsService) UpscaleFailed ¶
func (a *AnalyticsService) UpscaleFailed(user *ent.User, cogReq requests.BaseCogRequest, duration float64, failureReason string, source enttypes.SourceType, ip string) error
Upscale | Failed
func (*AnalyticsService) UpscaleStarted ¶
func (a *AnalyticsService) UpscaleStarted(user *ent.User, cogReq requests.BaseCogRequest, source enttypes.SourceType, ip string) error
Upscale | Started
func (*AnalyticsService) UpscaleSucceeded ¶
func (a *AnalyticsService) UpscaleSucceeded(user *ent.User, cogReq requests.BaseCogRequest, duration float64, qDuration float64, source enttypes.SourceType, ip string) error
Upscale | Succeeded
func (*AnalyticsService) VoiceoverFailed ¶
func (a *AnalyticsService) VoiceoverFailed(user *ent.User, cogReq requests.BaseCogRequest, duration float64, failureReason string, source enttypes.SourceType, ip string) error
Voiceover | Failed
func (*AnalyticsService) VoiceoverStarted ¶
func (a *AnalyticsService) VoiceoverStarted(user *ent.User, cogReq requests.BaseCogRequest, source enttypes.SourceType, ip string) error
Voiceover | Started
func (*AnalyticsService) VoiceoverSucceeded ¶
func (a *AnalyticsService) VoiceoverSucceeded(user *ent.User, cogReq requests.BaseCogRequest, duration float64, qDuration float64, source enttypes.SourceType, ip string) error
Voiceover | Succeeded
Click to show internal directories.
Click to hide internal directories.