storage

package
v0.0.0-...-f7f3e2b Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabaseInterface

type DatabaseInterface interface {
	AddNewPaper(newPaper common.PaperMetadata) error
	AddPaperShingles(paperShingles common.PaperShingles) error
	GetAllPapersShingles() ([]common.PaperShingles, error)
	AddPaperNft(paperNft common.NftResponse) error
	GetPaperNftById(paperId string) (string, error)
}

type DatabaseManager

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

func NewDatabaseManager

func NewDatabaseManager() *DatabaseManager

func (*DatabaseManager) AddNewPaper

func (d *DatabaseManager) AddNewPaper(newPaper common.PaperMetadata) error

func (*DatabaseManager) AddPaperNft

func (d *DatabaseManager) AddPaperNft(paperNft common.NftResponse) error

func (*DatabaseManager) AddPaperShingles

func (d *DatabaseManager) AddPaperShingles(paperShingles common.PaperShingles) error

func (*DatabaseManager) Disconnect

func (d *DatabaseManager) Disconnect()

func (*DatabaseManager) GetAllPapersShingles

func (d *DatabaseManager) GetAllPapersShingles() ([]common.PaperShingles, error)

func (*DatabaseManager) GetPaperNftById

func (d *DatabaseManager) GetPaperNftById(paperId string) (string, error)

Jump to

Keyboard shortcuts

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