everpay_sync

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 12 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
}

func (RollupArId) TableName added in v1.0.4

func (r RollupArId) TableName() string

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(arId string) 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