Documentation
¶
Index ¶
- func ErrFeatureNotEnabled(feature app.OrgFeature) stderr.ErrUser
- type Features
- func (f *Features) AllFeaturesEnabled(ctx context.Context, features ...app.OrgFeature) (bool, error)
- func (s *Features) Enable(ctx context.Context, orgID string, features map[string]bool) error
- func (f *Features) FeatureEnabled(ctx context.Context, feature app.OrgFeature) (bool, error)
- func (f *Features) OrgHasFeature(ctx context.Context, orgID string, feature app.OrgFeature) (bool, error)
- func (f *Features) OrgType(ctx context.Context) (app.OrgType, error)
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrFeatureNotEnabled ¶ added in v0.19.850
func ErrFeatureNotEnabled(feature app.OrgFeature) stderr.ErrUser
ErrFeatureNotEnabled returns a standard user error when a required feature is not enabled
Types ¶
type Features ¶
type Features struct {
// contains filtered or unexported fields
}
func (*Features) AllFeaturesEnabled ¶ added in v0.19.850
func (f *Features) AllFeaturesEnabled(ctx context.Context, features ...app.OrgFeature) (bool, error)
AllFeaturesEnabled returns true only if every provided feature is enabled for the org in context.
func (*Features) FeatureEnabled ¶
func (*Features) OrgHasFeature ¶
Click to show internal directories.
Click to hide internal directories.