Documentation ¶
Index ¶
- type Generator
- type MongoStore
- func (s *MongoStore) Access(ctx context.Context, id string) error
- func (s *MongoStore) Count(ctx context.Context) (int64, error)
- func (s *MongoStore) Delete(ctx context.Context, id string) (bool, error)
- func (s *MongoStore) DeleteBy(ctx context.Context, user, provider string) error
- func (s *MongoStore) DeleteByUserIDs(ctx context.Context, ids []string) error
- func (s *MongoStore) DeleteExpired(ctx context.Context) error
- func (s *MongoStore) Exists(ctx context.Context, id string) (bool, error)
- func (s *MongoStore) Save(ctx context.Context, token Token) error
- type Token
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type MongoStore ¶
type MongoStore struct {
// contains filtered or unexported fields
}
func (*MongoStore) Delete ¶
func (*MongoStore) DeleteBy ¶
func (s *MongoStore) DeleteBy(ctx context.Context, user, provider string) error
func (*MongoStore) DeleteByUserIDs ¶
func (s *MongoStore) DeleteByUserIDs(ctx context.Context, ids []string) error
func (*MongoStore) DeleteExpired ¶
func (s *MongoStore) DeleteExpired(ctx context.Context) error
func (*MongoStore) Exists ¶
type Token ¶
type Token struct { ID string `bson:"_id"` User string `bson:"user"` Provider string `bson:"provider,omitempty"` Created datetime.CpsTime `bson:"created"` Accessed datetime.CpsTime `bson:"accessed"` Expired *datetime.CpsTime `bson:"expired,omitempty"` ExpiredByInactivity *datetime.CpsTime `bson:"expired_by_inactivity,omitempty"` MaxInactiveInterval *datetime.DurationWithUnit `bson:"max_inactive_interval,omitempty"` }
Click to show internal directories.
Click to hide internal directories.