mongo

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2020 License: BSD-2-Clause Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProviderSessionSession

type ProviderSessionSession struct {
	*storeStructuredMongo.Session
}

func (*ProviderSessionSession) CreateUserProviderSession

func (p *ProviderSessionSession) CreateUserProviderSession(ctx context.Context, userID string, create *auth.ProviderSessionCreate) (*auth.ProviderSession, error)

func (*ProviderSessionSession) DeleteAllProviderSessions added in v1.31.0

func (p *ProviderSessionSession) DeleteAllProviderSessions(ctx context.Context, userID string) error

func (*ProviderSessionSession) DeleteProviderSession

func (p *ProviderSessionSession) DeleteProviderSession(ctx context.Context, id string) error

func (*ProviderSessionSession) EnsureIndexes

func (p *ProviderSessionSession) EnsureIndexes() error

func (*ProviderSessionSession) GetProviderSession

func (p *ProviderSessionSession) GetProviderSession(ctx context.Context, id string) (*auth.ProviderSession, error)

func (*ProviderSessionSession) ListUserProviderSessions

func (p *ProviderSessionSession) ListUserProviderSessions(ctx context.Context, userID string, filter *auth.ProviderSessionFilter, pagination *page.Pagination) (auth.ProviderSessions, error)

func (*ProviderSessionSession) UpdateProviderSession

func (p *ProviderSessionSession) UpdateProviderSession(ctx context.Context, id string, update *auth.ProviderSessionUpdate) (*auth.ProviderSession, error)

type RestrictedTokenSession

type RestrictedTokenSession struct {
	*storeStructuredMongo.Session
}

func (*RestrictedTokenSession) CreateUserRestrictedToken

func (r *RestrictedTokenSession) CreateUserRestrictedToken(ctx context.Context, userID string, create *auth.RestrictedTokenCreate) (*auth.RestrictedToken, error)

func (*RestrictedTokenSession) DeleteAllRestrictedTokens added in v1.31.0

func (r *RestrictedTokenSession) DeleteAllRestrictedTokens(ctx context.Context, userID string) error

func (*RestrictedTokenSession) DeleteRestrictedToken

func (r *RestrictedTokenSession) DeleteRestrictedToken(ctx context.Context, id string) error

func (*RestrictedTokenSession) EnsureIndexes

func (r *RestrictedTokenSession) EnsureIndexes() error

func (*RestrictedTokenSession) GetRestrictedToken

func (r *RestrictedTokenSession) GetRestrictedToken(ctx context.Context, id string) (*auth.RestrictedToken, error)

func (*RestrictedTokenSession) ListUserRestrictedTokens

func (r *RestrictedTokenSession) ListUserRestrictedTokens(ctx context.Context, userID string, filter *auth.RestrictedTokenFilter, pagination *page.Pagination) (auth.RestrictedTokens, error)

func (*RestrictedTokenSession) UpdateRestrictedToken

func (r *RestrictedTokenSession) UpdateRestrictedToken(ctx context.Context, id string, update *auth.RestrictedTokenUpdate) (*auth.RestrictedToken, error)

type Store

type Store struct {
	*storeStructuredMongo.Store
}

func NewStore

func NewStore(cfg *storeStructuredMongo.Config, lgr log.Logger) (*Store, error)

func (*Store) EnsureIndexes

func (s *Store) EnsureIndexes() error

func (*Store) NewProviderSessionSession

func (s *Store) NewProviderSessionSession() store.ProviderSessionSession

func (*Store) NewRestrictedTokenSession

func (s *Store) NewRestrictedTokenSession() store.RestrictedTokenSession

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL