bridge

package
v0.0.0-...-a59840d Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	Options
	// contains filtered or unexported fields
}

func New

func New(options Options) (*Bridge, error)

func (*Bridge) Start

func (b *Bridge) Start(ctx context.Context)

type Options

type Options struct {
	PostgresAddress string
	NSQAddress      string
	Channel         string
	OnError         func(err error)
	OnProcess       func(postgresChannel, nsqChannel string, payload Payload)
}

type Payload

type Payload struct {
	Pid             int    `json:"pid"`
	PostgresChannel string `json:"postgres_channel"`
	Data            string `json:"data"`
}

Jump to

Keyboard shortcuts

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