Documentation ¶
Index ¶
- type AuthUserStore
- type AuthUsersDB
- func (repo *AuthUsersDB) Close() error
- func (repo *AuthUsersDB) Create(ctx context.Context, u jelly.AuthUser) (jelly.AuthUser, error)
- func (repo *AuthUsersDB) Delete(ctx context.Context, id uuid.UUID) (jelly.AuthUser, error)
- func (repo *AuthUsersDB) Get(ctx context.Context, id uuid.UUID) (jelly.AuthUser, error)
- func (repo *AuthUsersDB) GetAll(ctx context.Context) ([]jelly.AuthUser, error)
- func (repo *AuthUsersDB) GetByUsername(ctx context.Context, username string) (jelly.AuthUser, error)
- func (repo *AuthUsersDB) Update(ctx context.Context, id uuid.UUID, u jelly.AuthUser) (jelly.AuthUser, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthUserStore ¶
type AuthUserStore struct {
// contains filtered or unexported fields
}
AuthUserStore is a SQLite database that is compatible with built-in jelly user authentication mechanisms. It implements jeldb.AuthUserStore and it can be easily integrated into custom structs by embedding it.
Its zero-value should not be used; call NewAuthUserStore to get an AuthUserStore ready for use.
func NewAuthUserStore ¶
func NewAuthUserStore(storageDir string) (*AuthUserStore, error)
func (*AuthUserStore) AuthUsers ¶
func (aus *AuthUserStore) AuthUsers() jelly.AuthUserRepo
func (*AuthUserStore) Close ¶
func (aus *AuthUserStore) Close() error
Click to show internal directories.
Click to hide internal directories.