tenant

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextKeyTenantID = "tenant:id"
View Source
var DisableTenantScope = "tenant:disable"

Functions

func RegisterCallbacks

func RegisterCallbacks(db *gorm.DB) error

RegisterCallbacks register callback into GORM DB

Types

type Tenant deprecated

type Tenant struct {
	TenantID uint
}

Deprecated: Will be replaced with TenantModel

func (*Tenant) SetTenantID

func (model *Tenant) SetTenantID(tenantID uint)

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)

Jump to

Keyboard shortcuts

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