nats

package
v1.16.9 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNatsSinkPlugin

func NewNatsSinkPlugin(config Config, schema []schema.StreamSchema, appCtx *stream_context.Context) sinks.DataSink

Types

type Config

type Config struct {
	Url      string `json:"url" yaml:"url"`
	Subject  string `json:"subject" yaml:"subject"`
	Username string `json:"username" yaml:"username"`
	Password string `json:"password" yaml:"password"`
}

type SinkPlugin

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

func (*SinkPlugin) Connect

func (s *SinkPlugin) Connect(ctx context.Context) error

func (*SinkPlugin) GetType

func (s *SinkPlugin) GetType() sinks.SinkDriver

func (*SinkPlugin) SetExpectedSchema

func (s *SinkPlugin) SetExpectedSchema(schema []schema.StreamSchema)

func (*SinkPlugin) Stop

func (s *SinkPlugin) Stop()

func (*SinkPlugin) Write

func (s *SinkPlugin) Write(message *message.Message) error

Jump to

Keyboard shortcuts

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