features

package
v0.19.771 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Features

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

func New

func New(params Params) *Features

func (*Features) Enable

func (s *Features) Enable(ctx context.Context, orgID string, features map[string]bool) error

func (*Features) FeatureEnabled

func (f *Features) FeatureEnabled(ctx context.Context, feature app.OrgFeature) (bool, error)

func (*Features) OrgHasFeature

func (f *Features) OrgHasFeature(ctx context.Context, orgID string, feature app.OrgFeature) (bool, error)

func (*Features) OrgType

func (f *Features) OrgType(ctx context.Context) (app.OrgType, error)

type Params

type Params struct {
	fx.In

	Cfg *internal.Config
	DB  *gorm.DB `name:"psql"`
	V   *validator.Validate
}

Jump to

Keyboard shortcuts

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