natssink

package
v0.0.0-...-77edef9 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

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
}

func NewKNatsSink

func NewKNatsSink(cfg *NatsSinkConf) *NatsSink

NewKNatsSink creates a new sink object given the conf

func (*NatsSink) Publish

func (s *NatsSink) Publish(msg *sink.Message) error

Publish send a message through the sink

type NatsSinkConf

type NatsSinkConf struct {
	sink.SinkConfCommon `json:",inline" yaml:",inline"`

	ServerUrl string `json:"serverUrl" yaml:"serverUrl"`
	Subject   string `json:"subject" yaml:"subject"`
}

Jump to

Keyboard shortcuts

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