tenant

package
v0.31.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func DeleteById

func DeleteById(ctx context.Context, conn repository.Querier, id uint32) (int, error)

deletes an entry from the database, returns number of rows deleted.

func LoadAll

func LoadAll(ctx context.Context, conn repository.Querier) (
	[]*model.Tenant, error,
)

func LoadByApiKey

func LoadByApiKey(ctx context.Context, conn repository.Querier, apiKey string) (
	*model.Tenant, error,
)

func LoadByEventId

func LoadByEventId(ctx context.Context, conn repository.Querier, eventId int) (
	*model.Tenant, error,
)

func LoadByExternalId

func LoadByExternalId(ctx context.Context, conn repository.Querier, externalId string) (
	*model.Tenant, error,
)

func LoadById

func LoadById(ctx context.Context, conn repository.Querier, id uint32) (
	*model.Tenant, error,
)

func LoadByName

func LoadByName(ctx context.Context, conn repository.Querier, name string) (
	*model.Tenant, error,
)

func LoadBySelector added in v0.31.0

func LoadBySelector(
	ctx context.Context,
	conn repository.Querier,
	sel *commonv1.TenantSelector,
) (*model.Tenant, error)

func Update

func Update(
	ctx context.Context,
	conn repository.Querier,
	id uint32,
	tenant *tenantv1.UpdateTenantRequest,
) (*model.Tenant, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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