consumerHandler

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Cfg        *config.ServiceConfig
	Interactor *consumerRouters.ConsumerInteractor
	// contains filtered or unexported fields
}

func New

func New(this *Handler) *Handler

func (*Handler) Run

func (h *Handler) Run(ctx context.Context) error

type HandlerFunc

type HandlerFunc func(ctx context.Context, msg *pubsub.Message) (interface{}, error)

func (HandlerFunc) HandleMessage

func (h HandlerFunc) HandleMessage(ctx context.Context, msg *pubsub.Message) (interface{}, error)

type HandlerPubSub

type HandlerPubSub interface {
	HandleMessage(ctx context.Context, msg *pubsub.Message) (interface{}, error)
}

Jump to

Keyboard shortcuts

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