MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / IsEntitled

Method IsEntitled

api/pkg/services/billing_service.go:78–80  ·  view source on GitHub ↗

IsEntitled checks if a user can send or receive and SMS message

(ctx context.Context, userID entities.UserID)

Source from the content-addressed store, hash-verified

76
77// IsEntitled checks if a user can send or receive and SMS message
78func (service *BillingService) IsEntitled(ctx context.Context, userID entities.UserID) *string {
79 return service.IsEntitledWithCount(ctx, userID, 1)
80}
81
82func (service *BillingService) handleLimitExceeded(ctx context.Context, user *entities.User) *string {
83 ctx, span := service.tracer.Start(ctx)

Callers 1

IsEntitledWithCountMethod · 0.45

Calls 1

IsEntitledWithCountMethod · 0.95

Tested by

no test coverage detected