Versions in this module Expand all Collapse all v1 v1.11.1 Jul 29, 2026 Changes in this version + const IGNORE_TENANT_KEY + func IgnoreTenantContext(ctx context.Context) context.Context + func IsIgnoreTenant(ctx context.Context) bool + type AutoIDPlugin struct + func NewAutoIDPlugin(db *mongo.Database) *AutoIDPlugin + func (p *AutoIDPlugin) BeforeInsert(stmt *mongox.Statement) error + func (p *AutoIDPlugin) Name() string + type SharedConfig struct + Condition bson.M + IsIgnore bool + IsPrivate bool + IsShared bool + type TenantOption func(*TenantPlugin) + func WithSystemTenantID(id int64) TenantOption + func WithTenantField(field string) TenantOption + type TenantPlugin struct + func NewTenantPlugin(opts ...TenantOption) *TenantPlugin + func (p *TenantPlugin) BeforeDelete(stmt *mongox.Statement) error + func (p *TenantPlugin) BeforeFind(stmt *mongox.Statement) error + func (p *TenantPlugin) BeforeInsert(stmt *mongox.Statement) error + func (p *TenantPlugin) BeforeUpdate(stmt *mongox.Statement) error + func (p *TenantPlugin) Name() string