mongo

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 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 {
	*mongo.Session
}

func (*ProviderSessionSession) CreateUserProviderSession

func (p *ProviderSessionSession) CreateUserProviderSession(ctx context.Context, userID string, create *auth.ProviderSessionCreate) (*auth.ProviderSession, 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 {
	*mongo.Session
}

func (*RestrictedTokenSession) CreateUserRestrictedToken

func (r *RestrictedTokenSession) CreateUserRestrictedToken(ctx context.Context, userID string, create *auth.RestrictedTokenCreate) (*auth.RestrictedToken, 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 {
	*mongo.Store
}

func NewStore

func NewStore(cfg *mongo.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