storage

package
v0.0.0-...-80b2b3e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const StorageTable = "tezos.storage"

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo interface {
	Set(key string, value interface{}) error
	Get(key string, dst interface{}) (bool, error)
}

type Repository

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

Repository is the storage repo implementation.

func New

func New(db *gorm.DB) *Repository

New creates an instance of repository using the provided db.

func (*Repository) Get

func (r *Repository) Get(key string, dst interface{}) (bool, error)

func (*Repository) Set

func (r *Repository) Set(key string, value interface{}) error

Jump to

Keyboard shortcuts

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