func Start() error {
	for _, serviceType := range types.PollingServiceTypes() {
		srvs, err := database.GetServiceDB().LoadServicesByType(serviceType)
		if err != nil {
			return err
		}
		for _, s := range srvs {
			if err := StartPolling(s); err != nil {
				return err
			}
		}
	}
	return nil
}
Start polling already existing services
package polling
import (
	"runtime/debug"
	"sync"
	"time"
	"github.com/matrix-org/go-neb/clients"
	"github.com/matrix-org/go-neb/database"
	"github.com/matrix-org/go-neb/types"
	log "github.com/sirupsen/logrus"
)
var (
	pollMutex     sync.Mutex
	startPollTime = make(map[string]int64)  
)
var clientPool *clients.Clients
func SetClients(clis *clients.Clients) {
	clientPool = clis
}