services

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2026 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FeatureContentModeration = "content-moderation"
)

Commercial feature constants

Variables

This section is empty.

Functions

func IsCommercialFeatureEnabled

func IsCommercialFeatureEnabled(feature string) bool

Helper function for easy access

Types

type LicenseInfo

type LicenseInfo struct {
	IsValid       bool     `json:"isValid"`
	Features      []string `json:"features"`
	ExpiresAt     *string  `json:"expiresAt,omitempty"`
	LicenseHolder string   `json:"licenseHolder"`
}

LicenseInfo contains information about the current license

type LicenseService

type LicenseService interface {
	// IsCommercialFeatureEnabled checks if a specific commercial feature is licensed
	IsCommercialFeatureEnabled(feature string) bool

	// GetLicenseInfo returns information about the current license
	GetLicenseInfo() *LicenseInfo
}

LicenseService provides license validation for commercial features

var License LicenseService = &defaultLicenseService{}

Global license service instance - can be overridden by commercial code

Directories

Path Synopsis
fs
s3
sql
log
sql
sqlstore
Company represents a company in UserList.com
Company represents a company in UserList.com

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL