You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: server.go
    path of file: ./repos/eagle/examples/queue/redis
    
    the code of the file until where you have to start completion: package main

import (
	eagle "github.com/go-eagle/eagle/pkg/app"
	"github.com/go-eagle/eagle/pkg/config"
	logger "github.com/go-eagle/eagle/pkg/log"
	redisMQ "github.com/go-eagle/eagle/pkg/transport/consumer/redis"
	"github.com/hibiken/asynq"
	"github.com/spf13/pflag"
)

// redis queue consumer
// cd examples/queue/redis/consumer/
// go run server.go handler.go client.go
func main() {
	pflag.Parse()

	// init config
	c := config.New(".")
	var cfg eagle.Config
	if err := c.Load("app", &cfg); err != nil {
		panic(err)
	}
	// set global
	eagle.Con
    
func main() {
	pflag.Parse()

	// init config
	c := config.New(".")
	var cfg eagle.Config
	if err := c.Load("app", &cfg); err != nil {
		panic(err)
	}
	// set global
	eagle.Conf = &cfg

	logger.Init()

	srv := redisMQ.NewServer(
		asynq.RedisClientOpt{Addr: "localhost:6379"},
		asynq.Config{
			// Specify how many concurrent workers to use
			Concurrency: 10,
			// Optionally specify multiple queues with different priority.
			Queues: map[string]int{
				redisMQ.QueueCritical: 6,
				redisMQ.QueueDefault:  3,
				redisMQ.QueueLow:      1,
			},
			// See the godoc for other configuration options
		},
	)

	// register handler
	srv.RegisterHandler(TypeEmailWelcome, HandleEmailWelcomeTask)
	// here register other handlers...

	// start app
	app := eagle.New(
		eagle.WithName(cfg.Name),
		eagle.WithVersion(cfg.Version),
		eagle.WithLogger(logger.GetLogger()),
		eagle.WithServer(
			srv,
		),
	)

	if err := app.Run(); err != nil {
		panic(err)
	}
}