Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller is a container that initializes, binds and controls server components.
func (*Controller) Run ¶
func (this *Controller) Run()
Run is a main server entry function. It processes command line options and runs the server in the appropriate mode.
type IQuitter ¶
type IQuitter interface {
Done() bool
}
IQuitter is a generic interface called from a participating goroutine to determine if it should quit.
type JSONBuilder ¶
type Quitter ¶
type Quitter struct {
IQuitter
// contains filtered or unexported fields
}
Quitter implements a quit (shutdown) protocol. When the quit protocol is in progress, all participating goroutines should quit.
func (*Quitter) GetChan ¶
GetChan returns the channel to be used in a go select statement in order to receive a Quit notification.
func (*Quitter) GoRoutines ¶
GoRoutines returns the number of participating goroutines in the quit protocol.
func (*Quitter) Join ¶
func (this *Quitter) Join()
Join causes the calling goroutine to participate in the quit protocol.
func (*Quitter) Leave ¶
func (this *Quitter) Leave()
Leave signals that the participating goroutine has quit. Should be called with defer semantics.