nats

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package nats implements the NATS Streaming connector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatsSink

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

NatsSink connector

func NewNatsSink

func NewNatsSink(conn stan.Conn, topic string) *NatsSink

NewNatsSink returns a new NatsSink instance

func (*NatsSink) In

func (ns *NatsSink) In() chan<- interface{}

In returns an input channel for receiving data

type NatsSource

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

NatsSource connector

func NewNatsSource

func NewNatsSource(ctx context.Context, conn stan.Conn, subscriptionType stan.SubscriptionOption, topics ...string) *NatsSource

NewNatsSource returns a new NatsSource instance

func (*NatsSource) Out

func (ns *NatsSource) Out() <-chan interface{}

Out returns the output channel for the data

func (*NatsSource) Via

func (ns *NatsSource) Via(_flow streams.Flow) streams.Flow

Via streams data through a given flow

Jump to

Keyboard shortcuts

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