config_repository

package
v0.1.33 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2022 License: AGPL-3.0 Imports: 12 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 *models.HeraConfig) (*models.HeraConfig, error)
	Get(ctx context.Context, id string) (*models.HeraConfig, error)
	UpdateGeneral(ctx context.Context, config *models.HeraConfig, id string) error
	UpdateAdvanced(ctx context.Context, config *models.HeraConfig, id string) error
	UpdateOidcProvider(ctx context.Context, oidcProvider *models.OidcProvider, id string) error
	UpdateOidcProviders(ctx context.Context, config *models.HeraConfig, id string) error
	UpdateTemplate(ctx context.Context, template *models.Template, id string) error
	UpdateCallbacks(ctx context.Context, callbacks []string, id string) error
	Delete(ctx context.Context, id string) error
	SetInMemoryConfigs(inMemoryConfigs map[string]*models.HeraConfig)
}

func New

func New(collection *mongo.Collection) ConfigRepository

Jump to

Keyboard shortcuts

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