You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
537 B
37 lines
537 B
package main
|
|
|
|
import (
|
|
"dsDataex/MyTask/Kafka2ES/Kafka2ESService"
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
var ChanCount chan int
|
|
var Count =0
|
|
|
|
func main() {
|
|
|
|
fmt.Println("Kafka2ES Service & Task Start !!!")
|
|
|
|
//s1 := gocron.NewScheduler(time.UTC)
|
|
//
|
|
//s1.Every(5).Seconds().Do(proc)
|
|
//s1.Every(5).Seconds().Do(proc)
|
|
//s1.StartBlocking()
|
|
|
|
//go proc()
|
|
//go proc()
|
|
//time.Sleep(60 * time.Minute)
|
|
|
|
Kafka2ESService.ServiceStart()
|
|
}
|
|
|
|
func proc() {
|
|
for no:=0;no<1000;no++{
|
|
Count++
|
|
fmt.Println("Count :",Count)
|
|
time.Sleep(1 * time.Millisecond)
|
|
}
|
|
}
|
|
|