Versions in this module Expand all Collapse all v0 v0.1.0 Jun 16, 2022 Changes in this version + type Store struct + func NewStore(log *zap.SugaredLogger, db *sqlx.DB) Store + func (s Store) Create(ctx context.Context, user User) error + func (s Store) QueryByEmail(ctx context.Context, email string) (User, error) + func (s Store) QueryByID(ctx context.Context, userID string) (User, error) + func (s Store) Tran(tx sqlx.ExtContext) Store + func (s Store) Update(ctx context.Context, user User) error + func (s Store) WithinTran(ctx context.Context, fn func(sqlx.ExtContext) error) error + type User struct + BeginningOfWeek int + DateCreated time.Time + DateFormat string + DateUpdated time.Time + DefaultWid string + DurationFormat string + Email string + FullName string + ID string + ImageURL string + Invitation pq.StringArray + Language string + PasswordHash []byte + TimeOfDayFormat string + TimeZone string