Documentation ¶
Index ¶
- Constants
- func FromAutoSetTenantId(ctx context.Context) bool
- func FromMultiTenancyDataFilter(ctx context.Context) bool
- func NewAutoSetTenantId(ctx context.Context, enable ...bool) context.Context
- func NewMultiTenancyDataFilter(ctx context.Context, enable ...bool) context.Context
- type ConnStrResolver
- type ConnStrResolverFunc
- type ConnStrings
Constants ¶
View Source
const Default = "default"
Variables ¶
This section is empty.
Functions ¶
func FromAutoSetTenantId ¶
func FromMultiTenancyDataFilter ¶
FromMultiTenancyDataFilter resolve where apply multi tenancy data filter, default true
func NewAutoSetTenantId ¶
Types ¶
type ConnStrResolver ¶
type ConnStrResolver interface { // Resolve connection string by user-friendly key Resolve(ctx context.Context, key string) (string, error) }
func ChainConnStrResolver ¶
func ChainConnStrResolver(cs ...ConnStrResolver) ConnStrResolver
type ConnStrResolverFunc ¶
type ConnStrings ¶
func (ConnStrings) Default ¶
func (c ConnStrings) Default() string
func (ConnStrings) SetDefault ¶
func (c ConnStrings) SetDefault(value string)
Click to show internal directories.
Click to hide internal directories.