func SpawnDaemon(ctx context.Context, conf DaemonConfig) (*Daemon, error) {
	s := Daemon{
		log:  conf.Logger,
		conf: conf,
	}
	setter.SetDefault(&s.log, logrus.WithField("category", "gubernator"))

	if err := s.Start(ctx); err != nil {
		return nil, err
	}
	return &s, nil
}
// SpawnDaemon starts a new gubernator daemon according to the provided DaemonConfig.
// This function will block until the daemon responds to connections as specified
// by GRPCListenAddress and HTTPListenAddress
SpawnDaemon starts a new gubernator daemon according to the provided DaemonConfig.
This function will block until the daemon responds to connections as specified
by GRPCListenAddress and HTTPListenAddress
// SpawnDaemon starts a new gubernator daemon according to the provided DaemonConfig . // This function will block until the daemon responds to connections as specified // by GRPCListenAddress and HTTPListenAddress
func SpawnDaemon(ctx context.Context, conf DaemonConfig) (*Daemon, error) {
	s := Daemon{
		log:  conf.Logger,
		conf: conf,
	}
	setter.SetDefault(&s.log, logrus.WithField("category", "gubernator"))
	if err := s.Start(ctx); err != nil {
		return nil, err
	}
	return &s, nil
}
func SpawnDaemon ( ctx context . Context , conf DaemonConfig ) ( * Daemon , error ) { s := Daemon { log : conf . Logger , conf : conf , } setter . SetDefault ( & s . log , logrus . WithField ( " " , " " ) ) if err := s . Start ( ctx ) ; err != nil { return nil , err } return & s , nil }
SpawnDaemon starts a new gubernator daemon according to the provided DaemonConfig.
SpawnDaemon starts a new gubernator daemon according to the provided DaemonConfig .