worker

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrorConnect

func IsErrorConnect(err error) bool

func IsErrorRead

func IsErrorRead(err error) bool

func IsErrorWrite

func IsErrorWrite(err error) bool

Types

type CBNSQWorker

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

func (*CBNSQWorker) Send

func (w *CBNSQWorker) Send(message *nsq.Message) ([]byte, error)

type FastCGIWorker

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

func (*FastCGIWorker) Send

func (w *FastCGIWorker) Send(message *nsq.Message) ([]byte, error)

type HTTPWorker

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

func (*HTTPWorker) Send

func (w *HTTPWorker) Send(message *nsq.Message) ([]byte, error)

给HTTP发消息

type Worker

type Worker interface {
	Send(*nsq.Message) ([]byte, error)
	// contains filtered or unexported methods
}

worker接口

func NewWorker

func NewWorker(addr, protocol, extra string, timeoutDial, timeoutWrite, timeoutRead time.Duration) (Worker, error)

Jump to

Keyboard shortcuts

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