func InitWorkerServer(deps Dependencies) *WorkerServer {
	return &WorkerServer{
		Dependencies: deps,
	}
}
InitWorkerServer creates a new worker server instance.
package server
import (
	"fmt"
	"net"
	"os"
	"path/filepath"
	"strings"
	"github.com/gaia-pipeline/gaia/helper/filehelper"
	"github.com/gaia-pipeline/gaia/security"
	"github.com/gaia-pipeline/gaia"
	pb "github.com/gaia-pipeline/gaia/workers/proto"
	"google.golang.org/grpc"
	"google.golang.org/grpc/credentials"
)
const (
	hoursBeforeValid = 2
	hoursAfterValid  = 87600  
)
type Dependencies struct {
	Certificate security.CAAPI
}
type WorkerServer struct {
	Dependencies
}