Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextKeyTenantID = "tenant:id"
View Source
var DisableTenantScope = "tenant:disable"
Functions ¶
func RegisterCallbacks ¶
RegisterCallbacks register callback into GORM DB
Types ¶
type TenantModel ¶ added in v0.1.4
type TenantModel struct {
TenantID *uint
}
func (*TenantModel) SetTenantID ¶ added in v0.1.4
func (model *TenantModel) SetTenantID(tenantID uint)
Click to show internal directories.
Click to hide internal directories.