pulsar

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

pulsar

盘古框架Pulsar集成,提供最简单的API以及丰富的功能,包括

  • 更友好的API
  • 序列化和反序列化
    • JSON
    • Protobuf
    • Msgpack
    • XML
  • 一切皆可配置
  • 多集群

感谢

jetbrains-variant-4.png

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() *optionLabel

Default 配置使用默认客户端

func Label

func Label(label string) *optionLabel

Label 配置使用哪一个客户端

func Property

func Property(key string, value string) *optionProperty

Property 属性

Types

type Client

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

Client 客户端

func (*Client) Producer

func (c *Client) Producer(topic string, opts ...producerOption) (producer *Producer, err error)

func (*Client) Subscribe

func (c *Client) Subscribe(topic string, opts ...subscribeOption) (consumer *Consumer, err error)

type Consumer

type Consumer struct {
	pulsar.Consumer
}

Consumer 消费者封装

type Producer

type Producer struct {
	pulsar.Producer
}

Producer 生产者

Jump to

Keyboard shortcuts

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