Simplify main.go
This commit is contained in:
19
cmd/cronjobs/imap/main.go
Normal file
19
cmd/cronjobs/imap/main.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"git.kocoder.xyz/kocoded/vt/core"
|
||||
"git.kocoder.xyz/kocoded/vt/integration"
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second*15)
|
||||
defer cancel()
|
||||
|
||||
app := core.Main(func(*integration.IntegrationHandler) {})
|
||||
app.Stop(ctx)
|
||||
|
||||
return
|
||||
}
|
||||
Reference in New Issue
Block a user