types

package
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage interface {
	// Low level functions to retrieve or store all configuration entries
	Read(appName, scope string) error
	Write(appName, scope string) error

	// In memory actions
	SetEntry(appName, scope, name string, value interface{}) error
	SetEntries(appName, scope string, data map[string]interface{}) error
	GetEntry(appName, scope, name string) (interface{}, error)
	GetEntries(appName, scope string) (map[string]interface{}, error)
	ListEntries(appName, scope string) ([]string, error)
	DeleteEntry(appName, scope, name string) error
	ListAppNames() ([]string, error)

	// Get current version in memory
	GetCurrentVersion(appName, scope string) (int64, error)

	// Get latest version from the storage
	GetLatestVersion(appName, scope string) (int64, error)
}

Storage is used to store data

Jump to

Keyboard shortcuts

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