mirror of https://bitbucket.org/ausocean/av.git
revid: improved commentary
This commit is contained in:
parent
e7c6b7319b
commit
070b1ae215
|
@ -52,6 +52,7 @@ type Sender interface {
|
||||||
send(d []byte) error
|
send(d []byte) error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Log is used by the multiSender.
|
||||||
type Log func(level int8, message string, params ...interface{})
|
type Log func(level int8, message string, params ...interface{})
|
||||||
|
|
||||||
// multiSender implements io.Writer. It provides the capacity to send to multiple
|
// multiSender implements io.Writer. It provides the capacity to send to multiple
|
||||||
|
@ -61,6 +62,7 @@ type multiSender struct {
|
||||||
log Log
|
log Log
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// newMultiSender returns a pointer to a new multiSender.
|
||||||
func newMultiSender(senders []loadSender, log Log) *multiSender {
|
func newMultiSender(senders []loadSender, log Log) *multiSender {
|
||||||
return &multiSender{
|
return &multiSender{
|
||||||
senders: senders,
|
senders: senders,
|
||||||
|
|
Loading…
Reference in New Issue