txfeed

package
v0.0.0-...-4e9b90d Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package txfeed implements Chain Core's transaction feeds.

Index

Constants

This section is empty.

Variables

View Source
var ErrDuplicateAlias = errors.New("duplicate feed alias")

Functions

This section is empty.

Types

type Tracker

type Tracker struct {
	DB pg.DB
}

func (*Tracker) Create

func (t *Tracker) Create(ctx context.Context, alias, fil, after string, clientToken string) (*TxFeed, error)

func (*Tracker) Delete

func (t *Tracker) Delete(ctx context.Context, id, alias string) error

func (*Tracker) Find

func (t *Tracker) Find(ctx context.Context, id, alias string) (*TxFeed, error)

func (*Tracker) Query

func (t *Tracker) Query(ctx context.Context, after string, limit int) ([]*TxFeed, string, error)

Query queries the Chain Core for txfeeds matching the query.

func (*Tracker) Update

func (t *Tracker) Update(ctx context.Context, id, alias, after, prev string) (*TxFeed, error)

type TxFeed

type TxFeed struct {
	ID     string  `json:"id,omitempty"`
	Alias  *string `json:"alias"`
	Filter string  `json:"filter,omitempty"`
	After  string  `json:"after,omitempty"`
}

Jump to

Keyboard shortcuts

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