Documentation ¶
Index ¶
- Variables
- type AuthorizationStore
- func (s *AuthorizationStore) Create(ctx context.Context, authz *oauth.Authorization) error
- func (s *AuthorizationStore) Delete(ctx context.Context, authz *oauth.Authorization) error
- func (s *AuthorizationStore) Get(ctx context.Context, userID, clientID string) (*oauth.Authorization, error)
- func (s *AuthorizationStore) GetByID(ctx context.Context, id string) (*oauth.Authorization, error)
- func (s *AuthorizationStore) ListByUserID(ctx context.Context, userID string) ([]*oauth.Authorization, error)
- func (s *AuthorizationStore) ResetAll(ctx context.Context, userID string) error
- func (s *AuthorizationStore) UpdateScopes(ctx context.Context, authz *oauth.Authorization) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(AuthorizationStore), "*"), )
Functions ¶
This section is empty.
Types ¶
type AuthorizationStore ¶
type AuthorizationStore struct { SQLBuilder *appdb.SQLBuilderApp SQLExecutor *appdb.SQLExecutor }
func (*AuthorizationStore) Create ¶
func (s *AuthorizationStore) Create(ctx context.Context, authz *oauth.Authorization) error
func (*AuthorizationStore) Delete ¶
func (s *AuthorizationStore) Delete(ctx context.Context, authz *oauth.Authorization) error
func (*AuthorizationStore) Get ¶
func (s *AuthorizationStore) Get(ctx context.Context, userID, clientID string) (*oauth.Authorization, error)
func (*AuthorizationStore) GetByID ¶
func (s *AuthorizationStore) GetByID(ctx context.Context, id string) (*oauth.Authorization, error)
func (*AuthorizationStore) ListByUserID ¶
func (s *AuthorizationStore) ListByUserID(ctx context.Context, userID string) ([]*oauth.Authorization, error)
func (*AuthorizationStore) ResetAll ¶
func (s *AuthorizationStore) ResetAll(ctx context.Context, userID string) error
func (*AuthorizationStore) UpdateScopes ¶
func (s *AuthorizationStore) UpdateScopes(ctx context.Context, authz *oauth.Authorization) error
Click to show internal directories.
Click to hide internal directories.