pq

package
v0.0.0-...-81dc835 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

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 (*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

Jump to

Keyboard shortcuts

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