store

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: GPL-3.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 JobApplicationNoteStore

type JobApplicationNoteStore struct {
	Database db.Database
}

func (*JobApplicationNoteStore) GetAllByID

func (*JobApplicationNoteStore) Insert

type JobApplicationStatusHistoryStore

type JobApplicationStatusHistoryStore struct {
	Database db.Database
}

func (*JobApplicationStatusHistoryStore) GetAllByID

func (*JobApplicationStatusHistoryStore) GetLatestByID

type JobApplicationStore

type JobApplicationStore struct {
	Database db.Database
}

func (*JobApplicationStore) Filter

func (s *JobApplicationStore) Filter(ctx context.Context, opts LimitOpts, userID int, company string, status types.JobApplicationStatus) ([]types.JobApplication, int, error)

func (*JobApplicationStore) Get

func (s *JobApplicationStore) Get(ctx context.Context, userID int, opts LimitOpts) ([]types.JobApplication, int, error)

func (*JobApplicationStore) GetByID

func (*JobApplicationStore) GetByIDAndUserID added in v1.0.3

func (s *JobApplicationStore) GetByIDAndUserID(ctx context.Context, id, userID int) (types.JobApplication, error)

func (*JobApplicationStore) Insert

func (*JobApplicationStore) Update

type LimitOpts

type LimitOpts struct {
	Page    int
	PerPage int
}

type SessionStore

type SessionStore struct {
	Database db.Database
}

func (*SessionStore) DeleteByToken

func (s *SessionStore) DeleteByToken(ctx context.Context, token string) error

func (*SessionStore) DeleteByUserID

func (s *SessionStore) DeleteByUserID(ctx context.Context, userId int) error

func (*SessionStore) DeleteExpired

func (s *SessionStore) DeleteExpired(ctx context.Context) error

func (*SessionStore) Get

func (s *SessionStore) Get(ctx context.Context, token string) (types.Session, error)

func (*SessionStore) Insert

func (s *SessionStore) Insert(ctx context.Context, session types.Session) error

func (*SessionStore) Refresh

func (s *SessionStore) Refresh(ctx context.Context, token string, expiresAt time.Time) error

type StatsStore

type StatsStore struct {
	Database db.Database
}

func (*StatsStore) Get

func (s *StatsStore) Get(ctx context.Context, userID int) (types.StatsOpts, error)

type UserStore

type UserStore struct {
	Database db.Database
}

func (*UserStore) Delete

func (s *UserStore) Delete(ctx context.Context, id int64) error

func (*UserStore) GetByEmail

func (s *UserStore) GetByEmail(ctx context.Context, email string) (types.User, error)

func (*UserStore) GetByID

func (s *UserStore) GetByID(ctx context.Context, id int64) (types.User, error)

func (*UserStore) Insert

func (s *UserStore) Insert(ctx context.Context, user types.User) error

func (*UserStore) UpdatePassword

func (s *UserStore) UpdatePassword(ctx context.Context, id int64, password string) error

Jump to

Keyboard shortcuts

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