Documentation ¶
Index ¶
- func InitClient(URL string) *pulsar.Client
- func SendMessage(client *pulsar.Client, topic string, message []byte)
- func SendRequestAsync(client *pulsar.Client, topic string, message *MessageResponse, ...)
- func SendRequestSync(client *pulsar.Client, topic string, message *MessageResponse) []byte
- func WaitEvent(client *pulsar.Client, topic string, foo func([]byte))
- type MessageResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
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
Types ¶
type MessageResponse ¶
func NewRequest ¶
func NewRequest(msg string) *MessageResponse
Click to show internal directories.
Click to hide internal directories.