messaging

package
v0.0.0-...-8ec58fc Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogStream

type LogStream struct {
	Stream[*model.LogAuditTrailEvent]
}

func NewLogStream

func NewLogStream(
	client *redis.Client,
	log *logrus.Logger,
	streamName string,
) *LogStream

type Stream

type Stream[T model.Event] struct {
	StreamName string
	Log        *logrus.Logger
	// contains filtered or unexported fields
}

func (*Stream[T]) GetStream

func (s *Stream[T]) GetStream() string

func (*Stream[T]) Send

func (s *Stream[T]) Send(ctx context.Context, event T) error

Jump to

Keyboard shortcuts

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