app_with_multitenancy

package
v0.0.0-...-7edcfce Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackgroundOpContext

func BackgroundOpContext(app app_context.Context, tenancy multitenancy.Tenancy, name string) multitenancy.TenancyContext

Types

type AppConfig

type AppConfig struct {
	pool_pubsub.AppConfig
	MultitenancyConfig
}

type AppConfigI

type AppConfigI interface {
	pool_pubsub.AppConfigI
	MultitenancyConfigI
}

type AppWithMultitenancy

type AppWithMultitenancy interface {
	pool_pubsub.AppWithPubsub
	Multitenancy() multitenancy.Multitenancy
}

type AppWithMultitenancyBase

type AppWithMultitenancyBase struct {
	*pool_pubsub.AppWithPubsubBase
	// contains filtered or unexported fields
}

func NewApp

func NewApp(buildConfig *app_context.BuildConfig, tenancyDbModels *multitenancy.TenancyDbModels, appConfig ...AppConfigI) *AppWithMultitenancyBase

func (*AppWithMultitenancyBase) Close

func (a *AppWithMultitenancyBase) Close()

func (*AppWithMultitenancyBase) Init

func (a *AppWithMultitenancyBase) Init(configFile string, configType ...string) (op_context.Context, error)

func (*AppWithMultitenancyBase) InitWithArgs

func (a *AppWithMultitenancyBase) InitWithArgs(configFile string, args []string, configType ...string) (op_context.Context, error)

func (*AppWithMultitenancyBase) Multitenancy

type MultitenancyConfig

type MultitenancyConfig struct {
	TenancyManagerBuilder TenancyManagerBuilder
}

func (*MultitenancyConfig) GetTenancyManagerBuilder

func (p *MultitenancyConfig) GetTenancyManagerBuilder() TenancyManagerBuilder

type MultitenancyConfigI

type MultitenancyConfigI interface {
	GetTenancyManagerBuilder() TenancyManagerBuilder
}

type TenancyManagerBuilder

type TenancyManagerBuilder = func(app pool_pubsub.AppWithPubsub, ctx op_context.Context) (multitenancy.Multitenancy, error)

Jump to

Keyboard shortcuts

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