Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageHandler ¶
type MessageHandler interface {
HandleMessage(msg []byte)
}
type MessageHandlerFunc ¶
type MessageHandlerFunc func(msg []byte)
func (MessageHandlerFunc) HandleMessage ¶
func (f MessageHandlerFunc) HandleMessage(msg []byte)
type UPDListener ¶
type UPDListener struct {
// contains filtered or unexported fields
}
func New ¶
func New(port int, msgHandler MessageHandler) (*UPDListener, error)
func (*UPDListener) Close ¶
func (l *UPDListener) Close() error
Click to show internal directories.
Click to hide internal directories.