Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GoroutinePool = &goroutinePool{name: "default", stopping: 0, StopChannel: make(chan struct{}), stoppedChannel: make(chan *goroutine)}
GoroutinePool tracks background goroutines and enable termination.
Usage:
go { h := GoroutinePool.Begin("name") defer h.End()} for { select { case <-GoroutinePool.StopChannel: return } } }()
GoroutinePool.Stop()
View Source
var LogAll bool
LogAll tells the package to log Info and lower messages Default is to log only Error and Warning; set it to true to log other messages
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler create a new NBNS handler
func NewHandler ¶
NewHandler create a NBNS handler
func (*Handler) AddNotificationChannel ¶
AddNotificationChannel set the notification channel for new names
func (*Handler) ListenAndServe ¶
ListenAndServe main listening loop
Click to show internal directories.
Click to hide internal directories.