gear_storage_methods

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorage

func NewStorage(moduleName, methodName string, meta *metadata.Metadata, rpc gear_rpc.IGearRPC) gear_storage.IGearStorage

Types

type Storage

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

func (*Storage) AddAccountIdToStorageParams added in v1.0.2

func (stor *Storage) AddAccountIdToStorageParams(accoundSeed string) error

func (*Storage) DecodeStorage

func (stor *Storage) DecodeStorage(decodeData any, storkey string) error

func (*Storage) DecodeStorageDataAny

func (stor *Storage) DecodeStorageDataAny(storkey string, v any) error

func (*Storage) DecodeStorageDataArray

func (stor *Storage) DecodeStorageDataArray() ([]map[string]any, error)

func (*Storage) DecodeStorageDataMap

func (stor *Storage) DecodeStorageDataMap(storkey string) (map[string]any, error)

func (*Storage) GetActiveProgramByCodeId added in v1.0.2

func (stor *Storage) GetActiveProgramByCodeId(codeId string) (*models.Program, error)

func (*Storage) GetPrograms added in v1.0.2

func (stor *Storage) GetPrograms() ([]*models.Program, error)

func (*Storage) GetProgramsId

func (stor *Storage) GetProgramsId() ([]string, error)

func (*Storage) GetStorageKey

func (stor *Storage) GetStorageKey() (string, error)

func (*Storage) GetStorageKeys

func (stor *Storage) GetStorageKeys() ([]string, error)

func (*Storage) GetVoucherStorageKeys added in v1.0.3

func (stor *Storage) GetVoucherStorageKeys() ([]string, error)

Jump to

Keyboard shortcuts

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