nats

package
v2.0.0-alpha.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultMaxPayloadSize = 1024 * 1024
View Source
const DnstapFstrmControlHeaderSize = 42
View Source
const DnstapFstrmMsgHeaderSize = 4

Variables

This section is empty.

Functions

func Setup

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

Types

type Nats

type Nats struct {
	plugin.PluginCommon
	sync.Mutex

	*output.DnstapOutput

	// config
	Hosts   []string
	Subject string

	User     string
	Password string
	Token    string

	MaxSize     int
	IntervalSec uint
	Format      pub.Format
	// contains filtered or unexported fields
}

func (*Nats) Close

func (f *Nats) Close()

func (*Nats) Open

func (f *Nats) Open() error

func (*Nats) Publish

func (f *Nats) Publish(data []byte) error

func (*Nats) Write

func (f *Nats) Write(dm *types.DnstapMessage) error

Jump to

Keyboard shortcuts

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