Skip to content

Instantly share code, notes, and snippets.

@brurucy
Created February 9, 2023 21:25
Show Gist options
  • Save brurucy/1ed166a0b33c4534306f1ff6e9db8354 to your computer and use it in GitHub Desktop.
Save brurucy/1ed166a0b33c4534306f1ff6e9db8354 to your computer and use it in GitHub Desktop.
memoir
package internal
import (
"github.com/go-git/go-billy/v5/memfs"
"github.com/pipedrive/pdfx/diplomat"
"github.com/pipedrive/pdfx/echo"
"github.com/pipedrive/pdfx/logger"
"github.com/pipedrive/pdfx/prometheus"
"github.com/pipedrive/pdfx/runmode"
"github.com/pipedrive/schemer/internal/repository"
"github.com/pipedrive/schemer/internal/routes"
"go.uber.org/fx"
)
func Module() fx.Option {
return fx.Options(
fx.Provide(memfs.New),
logger.Module(),
runmode.Module(),
echo.Module(echo.WithPort(3770)),
prometheus.Module(),
routes.Module(),
repository.Module(),
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment