tenant

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTenantRequired = errors.New("tenant is required")

Functions

This section is empty.

Types

type ActorResolver

type ActorResolver struct{}

func (ActorResolver) Resolve

func (ActorResolver) Resolve(_ context.Context, actor admin.Actor) (Tenant, error)

type Resolver

type Resolver interface {
	Resolve(ctx context.Context, actor admin.Actor) (Tenant, error)
}

type StaticResolver

type StaticResolver struct {
	Tenant Tenant
}

func (StaticResolver) Resolve

type Tenant

type Tenant struct {
	ID   string `json:"id"`
	Name string `json:"name"`
	Slug string `json:"slug"`
}

Jump to

Keyboard shortcuts

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