1
0
Fork 0

Add missing doc comments to base package

This commit is contained in:
Gregory Eremin 2016-01-17 16:45:03 +03:00
parent c2f8c05bb5
commit b64fbd4b1c
2 changed files with 6 additions and 0 deletions

View File

@ -155,18 +155,22 @@ func (d *BaseDaemon) Continue() bool {
}
}
// Log logs values using satan.Logger.Println function.
func (d *BaseDaemon) Log(v ...interface{}) {
if d.logger != nil {
d.logger.Println(v...)
}
}
// Logf logs values using satan.Logger.Printf function.
func (d *BaseDaemon) Logf(format string, v ...interface{}) {
if d.logger != nil {
d.logger.Printf(format, v...)
}
}
// Shutdown is the empty implementation of the daemons' Shutdown function that
// is inherited and used by default.
func (d *BaseDaemon) Shutdown() {}
// String returns the name of the Deamon unerlying struct.

View File

@ -66,6 +66,8 @@ type task struct {
}
const (
// DefaultNumWorkers is the default number of workers that would process
// tasks.
DefaultNumWorkers = 100
)