pulsarclient

package module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

pulsar

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client   pulsar.Client
	Producer pulsar.Producer
}

func (*Client) Init

func (client *Client) Init(configFilePath string, topic string) (err error)

func (*Client) Receive

func (client *Client) Receive(ctx context.Context, consumer pulsar.Consumer, msg any) (err error)

func (*Client) Send

func (client *Client) Send(ctx context.Context, msg any) (msgId pulsar.MessageID, err error)

Jump to

Keyboard shortcuts

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