Documentation
¶
Index ¶
- func Connect(ctx context.Context, driver string, opts ...Option) (db *multitenancy.DB, cleanup func(), err error)
- func CreateExampleData(ctx context.Context, db *multitenancy.DB, opts ...CreateExampleDataOption) (err error)
- func MakeBook(tenant *models.Tenant, id int) *models.Book
- func MakeTenant(id int) *models.Tenant
- type CreateExampleDataOption
- type CreateExampleDataOptions
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateExampleData ¶
func CreateExampleData(ctx context.Context, db *multitenancy.DB, opts ...CreateExampleDataOption) (err error)
func MakeTenant ¶
Types ¶
type CreateExampleDataOption ¶
type CreateExampleDataOption func(*CreateExampleDataOptions)
Click to show internal directories.
Click to hide internal directories.