db

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Get(hash string) (*File, error)
}

func NewEsGrpcDB

func NewEsGrpcDB(esCli db.WrapDB, grCli types.Chain33Client) DB

type File

type File struct {
	Data     string `json:"file_data"`
	TxHash   string `json:"file_sum_tx_hash"`
	FileType string `json:"file_type"`
	FileHash string `json:"file_hash"`
	FileSize int64  `json:"file_size"`
}

File 文件

func NewFile

func NewFile(sum *fsdb.FileSummary, content string) *File

NewFile new File

Jump to

Keyboard shortcuts

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