th_modifier

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = &bootstrap.Module{
	Name:       "tenancy-modifier",
	Precedence: bootstrap.TenantHierarchyModifierPrecedence,
	Options: []fx.Option{
		fx.Provide(provideModifier),
		fx.Invoke(setup),
	},
}

Functions

func AddTenant

func AddTenant(ctx context.Context, tenantId string, parentId string) error

func RemoveTenant

func RemoveTenant(ctx context.Context, tenantId string) error

func Use

func Use()

Types

type Modifier

type Modifier interface {
	RemoveTenant(ctx context.Context, tenantId string) error
	AddTenant(ctx context.Context, tenantId string, parentId string) error
}

type TenancyModifer

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

func (*TenancyModifer) AddTenant

func (m *TenancyModifer) AddTenant(ctx context.Context, tenantId string, parentId string) error

func (*TenancyModifer) RemoveTenant

func (m *TenancyModifer) RemoveTenant(ctx context.Context, tenantId string) error

Jump to

Keyboard shortcuts

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