Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ErrInvalidState ¶
func (*ErrInvalidState) Error ¶
func (err *ErrInvalidState) Error() string
type MessageHandler ¶
type MessageHandler func(msg [][]byte)
type MessageLoop ¶
type MessageLoop struct {
// contains filtered or unexported fields
}
func New ¶
func New(items PollItems) *MessageLoop
func (*MessageLoop) Close ¶
func (loop *MessageLoop) Close() error
func (*MessageLoop) DispatchMessage ¶
func (loop *MessageLoop) DispatchMessage(itemIndex byte, msg [][]byte) error
func (*MessageLoop) ListenAndServe ¶
func (loop *MessageLoop) ListenAndServe() error
type PollItem ¶
type PollItem struct { Socket *zmq.Socket Callback MessageHandler }
Click to show internal directories.
Click to hide internal directories.