seqpusher

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Seqpusher

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

Seqpusher pushes the same transactions to subsequent pushers sequentially. If some push in the chain failed next are not executed

func New

func New(sub ...pt.Pusher) Seqpusher

New creates new Seqpusher with chain of sub pushers

func (Seqpusher) Push

func (p Seqpusher) Push(ctx context.Context, txns []pt.Txn) error

Push pushes the same transactions to subsequent pushers sequentially. If some push in the chain failed next are not executed

type SettingsSeqpusher

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

Seqpusher pushes the same settings to subsequent pushers sequentially. If some push in the chain failed next are not executed

func NewSettings

func NewSettings(sub ...pt.SettingsPusher) SettingsSeqpusher

NewSettings creates new SettingsSeqpusher with chain of sub pushers

func (SettingsSeqpusher) PushSettings

func (p SettingsSeqpusher) PushSettings(ctx context.Context, sett *pt.Settings) error

PushSettings pushes the same settings to subsequent pushers sequentially. If some push in the chain failed next are not executed

Jump to

Keyboard shortcuts

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