// Package server provides the discovery service application factory.
package server

import (
	serverimp "github.com/tech/sendico/discovery/internal/server/internal"
	"github.com/tech/sendico/pkg/mlogger"
	"github.com/tech/sendico/pkg/server"
)

// Create initialises and returns a new discovery server application.
//
//nolint:ireturn // factory returns interface by design
func Create(logger mlogger.Logger, file string, debug bool) (server.Application, error) {
	return serverimp.Create(logger, file, debug) //nolint:wrapcheck
}
