nats_handlers

package
v0.0.0-...-ac35e32 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NatsReqReplyService

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

func NewNatsReqReplyService

func NewNatsReqReplyService(
	eventEmitter *infrastructure.EventEmitter,
	kw *kafka.Writer,
	db *gorm.DB,
	rdb *redis.Client,
	s3Client *s3.S3,
	natsClient *nats.Conn,
) *NatsReqReplyService

func (*NatsReqReplyService) CloseResponder

func (svc *NatsReqReplyService) CloseResponder() error

func (*NatsReqReplyService) InitAndRegisterResponder

func (svc *NatsReqReplyService) InitAndRegisterResponder(ctx context.Context, respondeFn func(m *nats.Msg) (string, error))

func (*NatsReqReplyService) InitEventHandlers

func (svc *NatsReqReplyService) InitEventHandlers()

func (*NatsReqReplyService) RespondEchoIncomingText

func (svc *NatsReqReplyService) RespondEchoIncomingText(m *nats.Msg) (string, error)

Jump to

Keyboard shortcuts

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