Versions in this module Expand all Collapse all v0 v0.2.0 Jul 3, 2026 Changes in this version + const DefaultNamespaceSeparator + const DefaultSeparator + func EntityString[E Entities](e E) string + func NewEntity[E Entities](s ...Stringer) E + type AuthzError struct + Err error + Op string + func NewQueryError(op string, err error) *AuthzError + func (e *AuthzError) Error() string + func (e *AuthzError) Unwrap() error + type Entities interface + type NoopStore struct + func (n *NoopStore) Allowed(context.Context, User, Object, Relation) (bool, error) + func (n *NoopStore) WriteTx(context.Context, func(context.Context, StoreTx) error) error + type Object string + const NoopObject + func NewObject(s ...Stringer) Object + type Relation string + const NoopRelation + func NewRelation(s ...Stringer) Relation + type Store interface + Allowed func(context.Context, User, Object, Relation) (bool, error) + WriteTx func(context.Context, func(context.Context, Tx) error) error + func NewStore[Tx any](client *client.OpenFgaClient, tx StoreTxFactory[Tx]) (Store[Tx], error) + type StoreTx interface + DeleteTuple func(context.Context, User, Object, Relation) error + WriteTuple func(context.Context, User, Object, Relation) error + type StoreTxFactory func(*client.OpenFgaClient, StoreTx) (Tx, error) + type Stringer func() string + func Join(sep string, entities ...string) Stringer + func Namespace(namespace string, sep ...string) Stringer + func String(s string) Stringer + type User string + const NoopUser + func NewUser(s ...Stringer) User