store

package
v0.97.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FGAStoreHelper

type FGAStoreHelper interface {
	GetStoreIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)
	GetModelIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)
	IsDuplicateWriteError(err error) bool
}

type FgaTenantStore

type FgaTenantStore struct {
	// contains filtered or unexported fields
}

func New

func New() *FgaTenantStore

func (*FgaTenantStore) GetCache

func (c *FgaTenantStore) GetCache() *expirable.LRU[string, string]

func (*FgaTenantStore) GetModelIDForTenant

func (c *FgaTenantStore) GetModelIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)

func (*FgaTenantStore) GetStoreIDForTenant

func (c *FgaTenantStore) GetStoreIDForTenant(ctx context.Context, conn openfgav1.OpenFGAServiceClient, tenantID string) (string, error)

func (*FgaTenantStore) IsDuplicateWriteError

func (c *FgaTenantStore) IsDuplicateWriteError(err error) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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