storage

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APPSTORAGEENDPOINT = "/platform/app-storage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	Cfg *xumm.Config
}

func (*Storage) DeleteAppStorage

func (s *Storage) DeleteAppStorage() (*models.AppStorageResponse, error)

DeleteAppStorage Remove all simple JSON objects attached to your XUMM App.

func (*Storage) GetAppStorage

func (s *Storage) GetAppStorage() (*models.AppStorageResponse, error)

GetAppStorage Retrieve simple JSON objects attached to your XUMM App.

func (*Storage) SetAppStorage

func (s *Storage) SetAppStorage(d map[string]interface{}) (*models.AppStorageResponse, error)

SetAppStorage Save simple JSON objects and attach it to your XUMM App.

type StorageInterface

type StorageInterface interface {
	GetAppStorage() (*models.AppStorageResponse, error)
	SetAppStorage(d map[string]interface{}) (*models.AppStorageResponse, error)
	DeleteAppStorage() (*models.AppStorageResponse, error)
}

Jump to

Keyboard shortcuts

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