everpay_sync

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotNeedSync = errors.New("not need sync")
)

Functions

This section is empty.

Types

type EverPaySync

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

function: sync everpay rollup txs to arseeding

func New

func New(dsn string, seedUrl string) *EverPaySync

func (*EverPaySync) FetchArIds

func (e *EverPaySync) FetchArIds()

func (*EverPaySync) PostToArseeding

func (e *EverPaySync) PostToArseeding()

func (*EverPaySync) Run

func (e *EverPaySync) Run()

type RollupArId

type RollupArId struct {
	gorm.Model
	ArId string `gorm:"index:idx01"`
	Post bool
}

type Wdb

type Wdb struct {
	Db *gorm.DB
}

func NewWdb

func NewWdb(dsn string) *Wdb

func (*Wdb) GetArIds

func (w *Wdb) GetArIds(fromId int) ([]RollupArId, error)

func (*Wdb) GetLastPostTx

func (w *Wdb) GetLastPostTx() (RollupArId, error)

func (*Wdb) GetNeedPostTxs

func (w *Wdb) GetNeedPostTxs() ([]RollupArId, error)

func (*Wdb) Insert

func (w *Wdb) Insert(arIds []*RollupArId) error

func (*Wdb) UpdatePosted

func (w *Wdb) UpdatePosted(arId string) error

Jump to

Keyboard shortcuts

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