Documentation ¶
Index ¶
- func BackgroundOpContext(app app_context.Context, tenancy multitenancy.Tenancy, name string) multitenancy.TenancyContext
- type AppConfig
- type AppConfigI
- type AppWithMultitenancy
- type AppWithMultitenancyBase
- func (a *AppWithMultitenancyBase) Close()
- func (a *AppWithMultitenancyBase) Init(configFile string, configType ...string) (op_context.Context, error)
- func (a *AppWithMultitenancyBase) InitWithArgs(configFile string, args []string, configType ...string) (op_context.Context, error)
- func (a *AppWithMultitenancyBase) Multitenancy() multitenancy.Multitenancy
- type MultitenancyConfig
- type MultitenancyConfigI
- type TenancyManagerBuilder
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 ¶
func (a *AppWithMultitenancyBase) Multitenancy() multitenancy.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)
Click to show internal directories.
Click to hide internal directories.