clients

package
v0.0.0-...-edba4e5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NSQClient

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

func NewNsqClient

func NewNsqClient(topic, channel string) NSQClient

初始化消费端

func (*NSQClient) Publish

func (n *NSQClient) Publish(proto *protocol.Protocol) error

func (*NSQClient) Receive

func (n *NSQClient) Receive(handler nsq.Handler) error

func (*NSQClient) Set

func (n *NSQClient) Set(option string, value interface{})

func (*NSQClient) SetMap

func (n *NSQClient) SetMap(options map[string]interface{})

func (*NSQClient) StopReceive

func (n *NSQClient) StopReceive() error

stop and wait

Jump to

Keyboard shortcuts

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