tenantstore

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

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 ListDestinationRequest added in v0.15.0

type ListDestinationRequest = driver.ListDestinationRequest

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