//go:build !metrics
// +build !metrics

package api

import (
	"zotregistry.io/zot/pkg/log"
)

type Controller struct {
	Config *Config
	Log    log.Logger
}

func NewController(cfg *Config) *Controller {
	logger := log.NewLogger(cfg.Exporter.Log.Level, cfg.Exporter.Log.Output)

	return &Controller{Config: cfg, Log: logger}
}

func (c *Controller) Run() {
	runExporter(c)
}
