2014-11-29 17:42:22 -05:00
|
|
|
package storage
|
2015-01-18 16:31:22 -05:00
|
|
|
|
2015-01-18 18:50:53 -05:00
|
|
|
import "errors"
|
2015-01-18 16:31:22 -05:00
|
|
|
|
|
|
|
func Start() (chan<- string, <-chan error) {
|
|
|
|
ctrlChannel := make(chan string)
|
|
|
|
errorChannel := make(chan error)
|
|
|
|
go start(ctrlChannel, errorChannel)
|
|
|
|
return ctrlChannel, errorChannel
|
|
|
|
}
|
|
|
|
|
|
|
|
func start(ctrlChannel <-chan string, errorChannel chan<- error) {
|
|
|
|
errorChannel <- errors.New("STORAGE MSG")
|
|
|
|
errorChannel <- errors.New("STORAGE MSG")
|
|
|
|
errorChannel <- errors.New("STORAGE MSG")
|
|
|
|
close(errorChannel)
|
|
|
|
}
|