subscriptions

package
v0.0.0-...-449d51e Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscriptions

type Subscriptions struct {
	// contains filtered or unexported fields
}

Subscriptions is the service that manages the organization permissions based on the subscription plans.

func New

New creates a new Subscriptions service with the given configuration.

func (*Subscriptions) HasPermission

func (p *Subscriptions) HasPermission(
	tx *models.Tx,
	txType models.TxType,
	org *db.Organization,
) (bool, error)

HasPermission checks if the organization has permission to perform the given transaction.

type SubscriptionsConfig

type SubscriptionsConfig struct {
	DB *db.MongoStorage
}

SubscriptionsConfig holds the configuration for the subscriptions service. It includes a reference to the MongoDB storage used by the service.

Jump to

Keyboard shortcuts

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