tenantstore

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tenantstore provides the TenantStore facade for tenant and destination storage.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTenantNotFound                  = driver.ErrTenantNotFound
	ErrTenantDeleted                   = driver.ErrTenantDeleted
	ErrDuplicateDestination            = driver.ErrDuplicateDestination
	ErrDestinationNotFound             = driver.ErrDestinationNotFound
	ErrDestinationDeleted              = driver.ErrDestinationDeleted
	ErrMaxDestinationsPerTenantReached = driver.ErrMaxDestinationsPerTenantReached
	ErrListTenantNotSupported          = driver.ErrListTenantNotSupported
	ErrInvalidCursor                   = driver.ErrInvalidCursor
	ErrInvalidOrder                    = driver.ErrInvalidOrder
	ErrConflictingCursors              = driver.ErrConflictingCursors
)

Error sentinels re-exported from driver.

View Source
var WithDestinationFilter = driver.WithDestinationFilter

WithDestinationFilter creates a ListDestinationByTenantOpts with the given filter.

Functions

This section is empty.

Types

type Config

type Config struct {
	RedisClient              redis.Cmdable
	Secret                   string
	AvailableTopics          []string
	MaxDestinationsPerTenant int
	DeploymentID             string
}

Config holds the configuration for creating a TenantStore.

type DestinationFilter

type DestinationFilter = driver.DestinationFilter

type ListDestinationByTenantOpts

type ListDestinationByTenantOpts = driver.ListDestinationByTenantOpts

type ListTenantRequest

type ListTenantRequest = driver.ListTenantRequest

type SeekPagination

type SeekPagination = driver.SeekPagination

type TenantPaginatedResult

type TenantPaginatedResult = driver.TenantPaginatedResult

type TenantStore

type TenantStore = driver.TenantStore

Type aliases re-exported from driver.

func New

func New(cfg Config) TenantStore

New creates a new Redis-backed TenantStore.

func NewMemTenantStore

func NewMemTenantStore() TenantStore

NewMemTenantStore creates an in-memory TenantStore for testing.

Directories

Path Synopsis
Package driver defines the TenantStore interface and associated types.
Package driver defines the TenantStore interface and associated types.
Package drivertest provides a conformance test suite for tenantstore drivers.
Package drivertest provides a conformance test suite for tenantstore drivers.
Package memtenantstore provides an in-memory implementation of driver.TenantStore.
Package memtenantstore provides an in-memory implementation of driver.TenantStore.
Package redistenantstore provides a Redis-backed implementation of driver.TenantStore.
Package redistenantstore provides a Redis-backed implementation of driver.TenantStore.

Jump to

Keyboard shortcuts

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