txfeed

package
v0.0.0-...-0b9d80d Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2016 License: AGPL-3.0 Imports: 5 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) 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