Documentation ¶
Index ¶
- type Data
- type StorageService
- func (ss *StorageService) DeleteEntry(appName, scope, name string) error
- func (ss *StorageService) GetCurrentVersion(appName, scope string) (int64, error)
- func (ss *StorageService) GetEntries(appName string, scope string) (map[string]interface{}, error)
- func (ss *StorageService) GetEntry(appName, scope, name string) (interface{}, error)
- func (ss *StorageService) GetLatestVersion(appName, scope string) (int64, error)
- func (ss *StorageService) ListAppNames() ([]string, error)
- func (ss *StorageService) ListEntries(appName, scope string) ([]string, error)
- func (ss *StorageService) Read(appName, scope string) error
- func (ss *StorageService) SetEntries(appName string, scope string, values map[string]interface{}) error
- func (ss *StorageService) SetEntry(appName, scope, name string, value interface{}) error
- func (ss *StorageService) Write(appName, scope string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageService ¶
type StorageService struct {
// contains filtered or unexported fields
}
StorageService contains a gorm DB client and a container for data loaded from DB into memory
func NewStorageService ¶
func (*StorageService) DeleteEntry ¶
func (ss *StorageService) DeleteEntry(appName, scope, name string) error
func (*StorageService) GetCurrentVersion ¶
func (ss *StorageService) GetCurrentVersion(appName, scope string) (int64, error)
func (*StorageService) GetEntries ¶
func (ss *StorageService) GetEntries(appName string, scope string) (map[string]interface{}, error)
func (*StorageService) GetEntry ¶
func (ss *StorageService) GetEntry(appName, scope, name string) (interface{}, error)
func (*StorageService) GetLatestVersion ¶
func (ss *StorageService) GetLatestVersion(appName, scope string) (int64, error)
func (*StorageService) ListAppNames ¶
func (ss *StorageService) ListAppNames() ([]string, error)
func (*StorageService) ListEntries ¶
func (ss *StorageService) ListEntries(appName, scope string) ([]string, error)
func (*StorageService) Read ¶
func (ss *StorageService) Read(appName, scope string) error
func (*StorageService) SetEntries ¶
func (ss *StorageService) SetEntries(appName string, scope string, values map[string]interface{}) error
func (*StorageService) SetEntry ¶
func (ss *StorageService) SetEntry(appName, scope, name string, value interface{}) error
func (*StorageService) Write ¶
func (ss *StorageService) Write(appName, scope string) error
Click to show internal directories.
Click to hide internal directories.