database

package
v0.0.85-test Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetTime = time.Now

Functions

This section is empty.

Types

type AuthInfoStore

type AuthInfoStore struct {
	// contains filtered or unexported fields
}

func ProvideAuthInfoStore

func ProvideAuthInfoStore(sqlStore sqlstore.Store, secretsService secrets.Service) *AuthInfoStore

func (*AuthInfoStore) DeleteAuthInfo

func (s *AuthInfoStore) DeleteAuthInfo(ctx context.Context, cmd *models.DeleteAuthInfoCommand) error

func (*AuthInfoStore) GetAuthInfo

func (s *AuthInfoStore) GetAuthInfo(ctx context.Context, query *models.GetAuthInfoQuery) error

func (*AuthInfoStore) GetExternalUserInfoByLogin

func (s *AuthInfoStore) GetExternalUserInfoByLogin(ctx context.Context, query *models.GetExternalUserInfoByLoginQuery) error

func (*AuthInfoStore) GetUserByEmail

func (s *AuthInfoStore) GetUserByEmail(ctx context.Context, email string) (*models.User, error)

func (*AuthInfoStore) GetUserById

func (s *AuthInfoStore) GetUserById(ctx context.Context, id int64) (*models.User, error)

func (*AuthInfoStore) GetUserByLogin

func (s *AuthInfoStore) GetUserByLogin(ctx context.Context, login string) (*models.User, error)

func (*AuthInfoStore) SetAuthInfo

func (s *AuthInfoStore) SetAuthInfo(ctx context.Context, cmd *models.SetAuthInfoCommand) error

func (*AuthInfoStore) UpdateAuthInfo

func (s *AuthInfoStore) UpdateAuthInfo(ctx context.Context, cmd *models.UpdateAuthInfoCommand) error

Jump to

Keyboard shortcuts

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