repository

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2022 License: LGPL-2.1 Imports: 12 Imported by: 0

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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