nsqconn

package
v0.0.0-...-db7d511 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2019 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NsqConn

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

func (*NsqConn) Close

func (nc *NsqConn) Close() error

func (*NsqConn) Pub

func (nc *NsqConn) Pub(topic string, data []byte) error

Sumple pub

func (*NsqConn) Sub

func (nc *NsqConn) Sub(topic string, handler remote.SubHandler) error

type NsqConnBuilder

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

func NewNsqBuilder

func NewNsqBuilder() *NsqConnBuilder

func (*NsqConnBuilder) AddLookupdIps

func (ncb *NsqConnBuilder) AddLookupdIps(ips ...string) *NsqConnBuilder

func (*NsqConnBuilder) AddNsqdIps

func (ncb *NsqConnBuilder) AddNsqdIps(ips ...string) *NsqConnBuilder

func (*NsqConnBuilder) Build

func (ncb *NsqConnBuilder) Build() (remote.PubSub, error)

func (*NsqConnBuilder) Channel

func (ncb *NsqConnBuilder) Channel(c string) *NsqConnBuilder

func (*NsqConnBuilder) Set

func (ncb *NsqConnBuilder) Set(key string, val interface{}) *NsqConnBuilder

Jump to

Keyboard shortcuts

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