config_repository

package
v0.1.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigRepository

type ConfigRepository interface {
	Create(ctx context.Context, config *go_nuntio.Config) (*go_nuntio.Config, error)
	Get(ctx context.Context) (*go_nuntio.Config, error)
	UpdateGeneral(ctx context.Context, config *go_nuntio.Config) error
	UpdateAdvanced(ctx context.Context, config *go_nuntio.Config) error
	UpdateOidcProvider(ctx context.Context, oidcProvider *go_nuntio.OidcProvider) error
	UpdateOidcProviders(ctx context.Context, config *go_nuntio.Config) error
	UpdateEmailProvider(ctx context.Context, emailProvider *go_nuntio.EmailProvider) error
	UpdateTextProvider(ctx context.Context, textProvider *go_nuntio.TextProvider) error
	UpdateTemplate(ctx context.Context, template *go_nuntio.Template) error
	Delete(ctx context.Context) error
}

func New

func New(collection *mongo.Collection, crypto cryptox.Crypto, config *go_nuntio.Config) ConfigRepository

Jump to

Keyboard shortcuts

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