Documentation ¶
Index ¶
- Constants
- Variables
- type CredentialRepo
- type CredentialRepoConfig
- type FileRepo
- func (r *FileRepo) Delete(_ context.Context, owner blinkfile.UserID, deleteFiles []blinkfile.FileID) error
- func (r *FileRepo) DeleteExpiredBefore(ctx context.Context, t time.Time) (int, error)
- func (r *FileRepo) Dir() string
- func (r *FileRepo) Get(_ context.Context, fileID blinkfile.FileID) (blinkfile.FileHeader, error)
- func (r *FileRepo) ListByUser(_ context.Context, userID blinkfile.UserID) ([]blinkfile.FileHeader, error)
- func (r *FileRepo) PutHeader(ctx context.Context, putHeader blinkfile.FileHeader) error
- func (r *FileRepo) Save(ctx context.Context, file blinkfile.File) error
- type FileRepoConfig
- type Log
- type SessionConfig
- type SessionRepo
- func (r *SessionRepo) Delete(ctx context.Context, token app.Token) error
- func (r *SessionRepo) DeleteAllUserSessions(ctx context.Context, userID blinkfile.UserID) (int, error)
- func (r *SessionRepo) Get(_ context.Context, token app.Token) (app.Session, bool, error)
- func (r *SessionRepo) Save(_ context.Context, session app.Session) error
- type UserRepo
- func (r *UserRepo) Create(_ context.Context, user blinkfile.User) error
- func (r *UserRepo) Delete(_ context.Context, userID blinkfile.UserID) error
- func (r *UserRepo) Get(_ context.Context, userID blinkfile.UserID) (blinkfile.User, bool, error)
- func (r *UserRepo) ListAll(_ context.Context) ([]blinkfile.User, error)
- type UserRepoConfig
Constants ¶
View Source
const ModeDir = os.ModeDir
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CredentialRepo ¶ added in v0.1.22
type CredentialRepo struct { Log // contains filtered or unexported fields }
func NewCredentialRepo ¶ added in v0.1.22
func NewCredentialRepo(ctx context.Context, cfg CredentialRepoConfig) (*CredentialRepo, error)
func (*CredentialRepo) GetByUsername ¶ added in v0.1.23
func (r *CredentialRepo) GetByUsername(_ context.Context, user blinkfile.Username) (out app.Credentials, err error)
func (*CredentialRepo) Set ¶ added in v0.1.22
func (r *CredentialRepo) Set(_ context.Context, cred app.Credentials) error
type CredentialRepoConfig ¶ added in v0.1.22
type FileRepo ¶
type FileRepo struct { Log // contains filtered or unexported fields }
func NewFileRepo ¶
func NewFileRepo(ctx context.Context, cfg FileRepoConfig) (*FileRepo, error)
func (*FileRepo) DeleteExpiredBefore ¶
func (*FileRepo) ListByUser ¶
type FileRepoConfig ¶
type SessionConfig ¶
type SessionRepo ¶ added in v0.1.27
type SessionRepo struct { Log // contains filtered or unexported fields }
func NewSessionRepo ¶ added in v0.1.27
func NewSessionRepo(ctx context.Context, cfg SessionConfig) (*SessionRepo, error)
func (*SessionRepo) DeleteAllUserSessions ¶ added in v0.1.27
type UserRepo ¶ added in v0.1.15
type UserRepo struct { Log // contains filtered or unexported fields }
func NewUserRepo ¶ added in v0.1.15
func NewUserRepo(ctx context.Context, cfg UserRepoConfig) (*UserRepo, error)
type UserRepoConfig ¶ added in v0.1.15
Click to show internal directories.
Click to hide internal directories.