Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigRepositoryBuilder ¶
type ConfigRepositoryBuilder interface { SetNamespace(namespace string) ConfigRepositoryBuilder Build(ctx context.Context) (config_repository.ConfigRepository, error) }
type Repository ¶
type Repository interface { Liveness(ctx context.Context) error UserRepositoryBuilder() UserRepositoryBuilder TokenRepositoryBuilder() TokenRepositoryBuilder ConfigRepositoryBuilder() ConfigRepositoryBuilder VerificationRepositoryBuilder() VerificationRepositoryBuilder RemoveCollections(ctx context.Context, namespace string) error SetDefaultConfig(config *go_nuntio.Config) BuildIndexes(ctx context.Context, namespace string) error }
func New ¶
func New(environment *environment.Environment, mongoClient *mongo.Client, logger *zap.Logger) (Repository, error)
type TokenRepositoryBuilder ¶
type TokenRepositoryBuilder interface { SetNamespace(namespace string) TokenRepositoryBuilder Build(ctx context.Context) (token_repository.TokenRepository, error) }
type UserRepositoryBuilder ¶
type UserRepositoryBuilder interface { SetNamespace(namespace string) UserRepositoryBuilder WithPasswordValidation(validatePassword bool) UserRepositoryBuilder Build(ctx context.Context) (user_repository.UserRepository, error) }
func NewUserRepositoryBuilder ¶
func NewUserRepositoryBuilder(client *mongo.Client, internalEncryptionKeys []string) UserRepositoryBuilder
NewUserRepositoryBuilder is used in other projects like Mercury
type VerificationRepositoryBuilder ¶
type VerificationRepositoryBuilder interface { SetNamespace(namespace string) VerificationRepositoryBuilder Build(ctx context.Context) (verification_repository.VerificationRepository, error) }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.