Documentation
¶
Index ¶
- func New(ctx context.Context, connString string) (acl.Store, error)
- type Crdb
- func (db *Crdb) CloseContext(ctx context.Context) error
- func (db *Crdb) Exists(ctx context.Context, object acl.Object, relation string, userID string) (bool, error)
- func (db *Crdb) GetNamespaces(ctx context.Context) (l []acl.Namespace, err error)
- func (db *Crdb) Save(ctx context.Context, tuple acl.RelationTuple) error
- func (db *Crdb) SaveNamespace(ctx context.Context, namespace acl.Namespace) error
- func (db *Crdb) UserSets(ctx context.Context, object acl.Object, relation string) ([]acl.UserSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crdb ¶
type Crdb struct {
*pgx.Conn
}
func NewLocalTest ¶
func (*Crdb) CloseContext ¶
CloseContext closes the database connection. It is safe to call when already closed.
func (*Crdb) GetNamespaces ¶
func (*Crdb) SaveNamespace ¶
Click to show internal directories.
Click to hide internal directories.