Documentation ¶
Index ¶
- type JobApplicationNoteStore
- type JobApplicationStatusHistoryStore
- type JobApplicationStore
- func (s *JobApplicationStore) Filter(ctx context.Context, opts LimitOpts, userID int, company string, ...) ([]types.JobApplication, int, error)
- func (s *JobApplicationStore) Get(ctx context.Context, userID int, opts LimitOpts) ([]types.JobApplication, int, error)
- func (s *JobApplicationStore) GetByID(ctx context.Context, id int) (types.JobApplication, error)
- func (s *JobApplicationStore) GetByIDAndUserID(ctx context.Context, id, userID int) (types.JobApplication, error)
- func (s *JobApplicationStore) Insert(ctx context.Context, rec types.JobApplication) error
- func (s *JobApplicationStore) Update(ctx context.Context, rec types.JobApplication) (time.Time, error)
- type LimitOpts
- type SessionStore
- func (s *SessionStore) DeleteByToken(ctx context.Context, token string) error
- func (s *SessionStore) DeleteByUserID(ctx context.Context, userId int) error
- func (s *SessionStore) DeleteExpired(ctx context.Context) error
- func (s *SessionStore) Get(ctx context.Context, token string) (types.Session, error)
- func (s *SessionStore) Insert(ctx context.Context, session types.Session) error
- func (s *SessionStore) Refresh(ctx context.Context, token string, expiresAt time.Time) error
- type StatsStore
- type UserStore
- func (s *UserStore) Delete(ctx context.Context, id int64) error
- func (s *UserStore) GetByEmail(ctx context.Context, email string) (types.User, error)
- func (s *UserStore) GetByID(ctx context.Context, id int64) (types.User, error)
- func (s *UserStore) Insert(ctx context.Context, user types.User) error
- func (s *UserStore) UpdatePassword(ctx context.Context, id int64, password string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JobApplicationNoteStore ¶
func (*JobApplicationNoteStore) GetAllByID ¶
func (s *JobApplicationNoteStore) GetAllByID(ctx context.Context, id int) ([]types.JobApplicationNote, error)
func (*JobApplicationNoteStore) Insert ¶
func (s *JobApplicationNoteStore) Insert(ctx context.Context, rec types.JobApplicationNote) (types.JobApplicationNote, error)
type JobApplicationStatusHistoryStore ¶
func (*JobApplicationStatusHistoryStore) GetAllByID ¶
func (s *JobApplicationStatusHistoryStore) GetAllByID(ctx context.Context, id int) ([]types.JobApplicationStatusHistory, error)
func (*JobApplicationStatusHistoryStore) GetLatestByID ¶
func (s *JobApplicationStatusHistoryStore) GetLatestByID(ctx context.Context, id int) (types.JobApplicationStatusHistory, error)
type JobApplicationStore ¶
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 (s *JobApplicationStore) GetByID(ctx context.Context, id int) (types.JobApplication, error)
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 (s *JobApplicationStore) Insert(ctx context.Context, rec types.JobApplication) error
func (*JobApplicationStore) Update ¶
func (s *JobApplicationStore) Update(ctx context.Context, rec types.JobApplication) (time.Time, error)
type SessionStore ¶
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
type StatsStore ¶
Click to show internal directories.
Click to hide internal directories.