settings

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GlobalCollection = "global"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalSettings

type GlobalSettings interface {
	Get(ctx context.Context) (map[string]*structpb.Value, error)
}

type GlobalSettingsLogic

type GlobalSettingsLogic struct {
	// contains filtered or unexported fields
}

func NewGlobalSettingsLogic

func NewGlobalSettingsLogic(store GlobalSettingsStore) *GlobalSettingsLogic

func (*GlobalSettingsLogic) Get

func (logic *GlobalSettingsLogic) Get(ctx context.Context) (map[string]*structpb.Value, error)

func (*GlobalSettingsLogic) SetSettings

func (logic *GlobalSettingsLogic) SetSettings(ctx context.Context, settings map[string]*structpb.Value) error

type GlobalSettingsStore

type GlobalSettingsStore interface {
	Get(ctx context.Context, collection string) (map[string]*structpb.Value, error)
	Set(ctx context.Context, collection string, entries map[string]*structpb.Value) error
}

type ServiceSettingsLogic

type ServiceSettingsLogic struct {
	// contains filtered or unexported fields
}

func NewServiceSettingsLogic

func NewServiceSettingsLogic(globalSettings GlobalSettings, store ServiceSettingsStore) *ServiceSettingsLogic

func (*ServiceSettingsLogic) GetForService

func (logic *ServiceSettingsLogic) GetForService(ctx context.Context, service string) (map[string]*structpb.Value, error)

func (*ServiceSettingsLogic) SetForService

func (logic *ServiceSettingsLogic) SetForService(ctx context.Context, service string, settings map[string]*structpb.Value) error

type ServiceSettingsStore

type ServiceSettingsStore interface {
	Get(ctx context.Context, collection string) (map[string]*structpb.Value, error)
	Set(ctx context.Context, collection string, settings map[string]*structpb.Value) error
}

Jump to

Keyboard shortcuts

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