PulsarLib

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitClient

func InitClient(URL string) *pulsar.Client

func SendMessage

func SendMessage(client *pulsar.Client, topic string, message []byte)

func SendRequestAsync

func SendRequestAsync(client *pulsar.Client, topic string, message *MessageResponse, foo func([]byte))

func SendRequestSync

func SendRequestSync(client *pulsar.Client, topic string, message *MessageResponse) []byte

func WaitEvent

func WaitEvent(client *pulsar.Client, topic string, foo func([]byte))

Types

type MessageResponse

type MessageResponse struct {
	Id  string `json:"id"`
	Msg string `json:"msg"`
}

func NewRequest

func NewRequest(msg string) *MessageResponse

Jump to

Keyboard shortcuts

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