nsqcli

package
Version: v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Conn *httpclient.Client
	// contains filtered or unexported fields
}

Client is nsq RPC client

func NewNsqClient

func NewNsqClient(lookupdAddr []string, nsqdAddr string) *Client

NewNsqClient is to get nsq client func

func (*Client) EnsureNsqdTopic

func (c *Client) EnsureNsqdTopic(topic string) error

EnsureNsqdTopic is to create a nsqd topic

func (*Client) EnsureNsqdTopics

func (c *Client) EnsureNsqdTopics(topics []string) error

EnsureNsqdTopics is to create a list of topic

Source Files

Jump to

Keyboard shortcuts

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