mq

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AmqpUpstream

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

func (*AmqpUpstream) Submit

func (au *AmqpUpstream) Submit(topic string, v interface{})

type Connector

type Connector struct {
	Conn string
}

type Downstream

type Downstream interface {
	Subscribe(topic string, v interface{}, upstream Upstream)
	Topic() string
}

type Service

type Service interface {
	Run() error
	UpstreamHandler() Upstream
}

func Start

func Start(ctx context.Context, c Connector, s ...Downstream) (svs Service, err error)

type Upstream

type Upstream interface {
	Submit(topic string, v interface{}) // 提交
}

Jump to

Keyboard shortcuts

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