Documentation ¶
Index ¶
- type PostgresRepository
- type Store
- func (s *Store) CreateSession(ctx context.Context, r gosesh.CreateSessionRequest) (*gosesh.Session, error)
- func (s *Store) DeleteSession(ctx context.Context, identifier gosesh.Identifier) error
- func (s *Store) DeleteUserSessions(ctx context.Context, identifier gosesh.Identifier) (int, error)
- func (s *Store) GetSession(ctx context.Context, identifier gosesh.Identifier) (*gosesh.Session, error)
- func (s *Store) UpdateSession(ctx context.Context, identifier gosesh.Identifier, ...) (*gosesh.Session, error)
- func (s *Store) UpsertUser(ctx context.Context, user gosesh.OAuth2User) (gosesh.Identifier, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresRepository ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CreateSession ¶
func (*Store) DeleteSession ¶
func (*Store) DeleteUserSessions ¶
func (*Store) GetSession ¶
func (*Store) UpdateSession ¶
func (s *Store) UpdateSession(ctx context.Context, identifier gosesh.Identifier, r gosesh.UpdateSessionValues) (*gosesh.Session, error)
func (*Store) UpsertUser ¶
func (s *Store) UpsertUser(ctx context.Context, user gosesh.OAuth2User) (gosesh.Identifier, error)
Click to show internal directories.
Click to hide internal directories.