data

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 1 Imported by: 6 modules, 9 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const Default = "default"

Variables

This section is empty.

Functions

func FromAutoSetTenantId

func FromAutoSetTenantId(ctx context.Context) bool

func FromMultiTenancyDataFilter

func FromMultiTenancyDataFilter(ctx context.Context) bool

FromMultiTenancyDataFilter resolve where apply multi tenancy data filter, default true

func NewAutoSetTenantId

func NewAutoSetTenantId(ctx context.Context, enable ...bool) context.Context

func NewMultiTenancyDataFilter

func NewMultiTenancyDataFilter(ctx context.Context, enable ...bool) context.Context

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 ConnStrResolverFunc func(ctx context.Context, key string) (string, error)

func (ConnStrResolverFunc) Resolve

func (c ConnStrResolverFunc) Resolve(ctx context.Context, key string) (string, error)

type ConnStrings

type ConnStrings map[string]string

func (ConnStrings) Default

func (c ConnStrings) Default() string

func (ConnStrings) Resolve

func (c ConnStrings) Resolve(_ context.Context, key string) (string, error)

func (ConnStrings) SetDefault

func (c ConnStrings) SetDefault(value string)

Jump to

Keyboard shortcuts

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