Documentation ¶
Index ¶
- Variables
- type Store
- func (store *Store) CountUsers(ctx context.Context, sel ident.Selection) (numSel int, numTotal int, err error)
- func (store *Store) CreateExtensions(ctx context.Context) error
- func (store *Store) CreateSession(ctx context.Context, aud string, sub string, scopes []string) (sess string, err error)
- func (store *Store) CreateTableSessions(ctx context.Context) error
- func (store *Store) CreateTableSocialUsers(ctx context.Context) error
- func (store *Store) CreateTableUsers(ctx context.Context) error
- func (store *Store) DeleteUsers(ctx context.Context, sel ident.Selection) (count int, err error)
- func (store *Store) FindUsers(ctx context.Context, sel ident.Selection, pageToken string, pageSize int) (users []*ident.User, nextPageToken string, err error)
- func (store *Store) LoginUser(ctx context.Context, username string, password string) (sub string, err error)
- func (store *Store) RefreshSession(ctx context.Context, sess string, filterScopes []string) (sub string, grantedScopes []string, err error)
- func (store *Store) RegisterSocialUsers(ctx context.Context, iss string, users []*ident.NewUser) (subs []string, err error)
- func (store *Store) RegisterUsers(ctx context.Context, iss string, ignoreEmails bool, users []*ident.NewUser) (subs []string, err error)
- func (store *Store) RevokeSession(ctx context.Context, sess string) (err error)
- func (store *Store) SetupDatabase(ctx context.Context) error
- func (store *Store) UpdateSessions(ctx context.Context, sess string, sub string, addScopes []string, ...) (numUpdated int, err error)
- func (store *Store) UpdateUsers(ctx context.Context, sel ident.Selection, u *ident.UserUpdate) (numUpdated int, err error)
- func (store *Store) Userinfo(ctx context.Context, sub string) (info *openid.Userinfo, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var _, _, Module = module.New("pgxstore", messages)
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct { Pool *pgxpool.Pool MaxNumSessionsPerUser int UsersTableName string SessionsTableName string SocialUsersTableName string }
func (*Store) CountUsers ¶
func (*Store) CreateSession ¶
func (*Store) CreateTableSessions ¶
func (*Store) CreateTableSocialUsers ¶
func (*Store) DeleteUsers ¶
func (*Store) RefreshSession ¶
func (*Store) RegisterSocialUsers ¶
func (*Store) RegisterUsers ¶
func (*Store) RevokeSession ¶
func (*Store) UpdateSessions ¶
func (*Store) UpdateUsers ¶
Click to show internal directories.
Click to hide internal directories.