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 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. |
Click to show internal directories.
Click to hide internal directories.