block

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

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

func NewRepository

func NewRepository(db *pg.DB) *Repository

func (*Repository) DeleteLastBlockData

func (r *Repository) DeleteLastBlockData() error

func (*Repository) GetLastFromDB

func (r *Repository) GetLastFromDB() (*models.Block, error)

func (*Repository) LinkWithValidators

func (r *Repository) LinkWithValidators(links []*models.BlockValidator) error

func (*Repository) Save

func (r *Repository) Save(block *models.Block) error

Jump to

Keyboard shortcuts

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