rabbitmq

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerMap

type HandlerMap map[string]rabbitmq.Handler

type Server

type Server struct {
	// contains filtered or unexported fields
}
var (
	// Srv is a global rabbitmq server
	Srv *Server
)

func GetServer

func GetServer() *Server

func NewServer

func NewServer(opts ...options.ConsumerOption) *Server

func (*Server) GetRegisterHandler

func (s *Server) GetRegisterHandler(queueName string) (rabbitmq.Handler, error)

func (*Server) RegisterHandler

func (s *Server) RegisterHandler(queueName string, h rabbitmq.Handler) error

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Jump to

Keyboard shortcuts

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