restore

package
v0.0.0-...-47f881f Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GET_BLOCK_URL   = "https://api.viewblock.io/arweave/blocks/%v?network=mainnet&page=%v"
	GET_CONTENT_URL = "https://arweave.net/%v"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Con

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

func CreateCon

func CreateCon(conf *conf.HistoryConf, db *xorm.Engine) *Con

func (*Con) GetArticles

func (c *Con) GetArticles()

type Parser

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

func CreateParser

func CreateParser(conf *conf.HistoryConf, db *xorm.Engine, t string) *Parser

func (*Parser) GetArticles

func (p *Parser) GetArticles()

func (*Parser) GetArticlesFromDb

func (p *Parser) GetArticlesFromDb()

func (*Parser) GetContentByTxID

func (p *Parser) GetContentByTxID(b *types.Block, tx string) (*model.Content, error)

func (*Parser) GetContents

func (p *Parser) GetContents(height int64) (contents []*model.Content, err error)

Jump to

Keyboard shortcuts

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