Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type AuthInfoService ¶
type AuthInfoService interface { LookupAndUpdate(ctx context.Context, query *models.GetUserByAuthInfoQuery) (*models.User, error) GetAuthInfo(ctx context.Context, query *models.GetAuthInfoQuery) error GetExternalUserInfoByLogin(ctx context.Context, query *models.GetExternalUserInfoByLoginQuery) error SetAuthInfo(ctx context.Context, cmd *models.SetAuthInfoCommand) error UpdateAuthInfo(ctx context.Context, cmd *models.UpdateAuthInfoCommand) error }
type Service ¶
type Service interface { CreateUser(cmd models.CreateUserCommand) (*models.User, error) UpsertUser(ctx context.Context, cmd *models.UpsertUserCommand) error DisableExternalUser(ctx context.Context, username string) error SetTeamSyncFunc(TeamSyncFunc) }
type Store ¶
type Store interface { GetExternalUserInfoByLogin(ctx context.Context, query *models.GetExternalUserInfoByLoginQuery) error GetAuthInfo(ctx context.Context, query *models.GetAuthInfoQuery) error SetAuthInfo(ctx context.Context, cmd *models.SetAuthInfoCommand) error UpdateAuthInfo(ctx context.Context, cmd *models.UpdateAuthInfoCommand) error DeleteAuthInfo(ctx context.Context, cmd *models.DeleteAuthInfoCommand) error GetUserById(ctx context.Context, id int64) (*models.User, error) GetUserByLogin(ctx context.Context, login string) (*models.User, error) GetUserByEmail(ctx context.Context, email string) (*models.User, error) }
type TeamSyncFunc ¶
type TeamSyncFunc func(user *models.User, externalUser *models.ExternalUserInfo) error
Click to show internal directories.
Click to hide internal directories.