consumer

package
v0.0.0-...-63f0587 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerService

type ConsumerService interface {
	ConsumerOption() (Queue string, ConnectionKey connection.ConnectionKey, ConsumerTotal int)
	ConsumerFunc(msgjson string) error
}

type Service

type Service struct {
	ConsumerServiceList []ConsumerService
}

func New

func New() *Service

func (*Service) RegisterConsumer

func (list *Service) RegisterConsumer(c ConsumerService)

func (*Service) Start

func (s *Service) Start()

Jump to

Keyboard shortcuts

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