consumer

package
v0.0.0-...-6d66bbc Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SinkConsumerFunc

func SinkConsumerFunc(cons jetstream.Consumer, sinkPath string)

Types

type MessageData

type MessageData struct {
	Data []byte
	Msg  jetstream.Msg
}

type SinkConsumer

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

func NewSinkCunsumer

func NewSinkCunsumer(nc *nats.Conn, sinkPath string) *SinkConsumer

func (*SinkConsumer) PeriodSched

func (c *SinkConsumer) PeriodSched(js jetstream.JetStream)

func (*SinkConsumer) Start

func (c *SinkConsumer) Start()

Consume from EventStream, sink event into json file (time-slice algo)

Jump to

Keyboard shortcuts

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