nats

package
v2.0.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(bs json.RawMessage) (types.InputPlugin, error)

Types

type Nats

type Nats struct {
	plugin.PluginCommon
	sync.Mutex

	*output.DnstapOutput

	// config
	Hosts     []string
	Subject   string
	QueueName string
	QueueLen  int

	User     string
	Password string
	Token    string

	Format input.Format
}

func (*Nats) Open

func (f *Nats) Open() (*nats.Conn, error)

func (*Nats) Start

func (f *Nats) Start(ctx context.Context, w types.Writer) error

func (*Nats) Subscribe

func (f *Nats) Subscribe(ctx context.Context, w types.Writer) error

Jump to

Keyboard shortcuts

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