mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-19 19:24:01 +00:00
chore: add feature matrix
This commit is contained in:
21
server/service/license/feature_matrix.go
Normal file
21
server/service/license/feature_matrix.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package license
|
||||
|
||||
type FeatureType string
|
||||
|
||||
const (
|
||||
// Accounts.
|
||||
|
||||
// FeatureTypeUnlimitedAccounts allows the user to create unlimited accounts.
|
||||
FeatureTypeUnlimitedAccounts FeatureType = "unlimited_accounts"
|
||||
|
||||
// Customization.
|
||||
|
||||
// FeatureTypeCustomStyle allows the user to customize the style.
|
||||
FeatureTypeCustomeStyle FeatureType = "custom_style"
|
||||
)
|
||||
|
||||
// FeatureMatrix is a matrix of features in [Free, Pro].
|
||||
var FeatureMatrix = map[FeatureType][2]bool{
|
||||
FeatureTypeUnlimitedAccounts: {false, true},
|
||||
FeatureTypeCustomeStyle: {false, true},
|
||||
}
|
Reference in New Issue
Block a user