Add Gitter support

This commit is contained in:
Wim
2016-09-04 20:03:07 +02:00
parent 44144587a0
commit 12389d602e
20 changed files with 1782 additions and 1 deletions

22
vendor/github.com/mrexodia/wray/schedular.go generated vendored Normal file
View File

@@ -0,0 +1,22 @@
package wray
import "time"
type Schedular interface {
wait(time.Duration, func())
delay() time.Duration
}
type ChannelSchedular struct {
}
func (self ChannelSchedular) wait(delay time.Duration, callback func()) {
go func() {
time.Sleep(delay)
callback()
}()
}
func (self ChannelSchedular) delay() time.Duration {
return (1 * time.Minute)
}