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 ¶
func New(conf *SubscriptionsConfig) *Subscriptions
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.
Click to show internal directories.
Click to hide internal directories.