-
Notifications
You must be signed in to change notification settings - Fork 1
/
module.go
28 lines (25 loc) · 873 Bytes
/
module.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package config
import (
"github.com/alexfalkowski/konfig/server/config/provider"
"github.com/alexfalkowski/konfig/server/config/provider/env"
"github.com/alexfalkowski/konfig/server/config/provider/ssm"
sopentracing "github.com/alexfalkowski/konfig/server/config/provider/ssm/trace/opentracing"
"github.com/alexfalkowski/konfig/server/config/provider/vault"
vopentracing "github.com/alexfalkowski/konfig/server/config/provider/vault/trace/opentracing"
"go.uber.org/fx"
)
var (
// Module for fx.
Module = fx.Options(
fx.Provide(env.NewTransformer),
fx.Provide(vault.NewConfig),
fx.Provide(vault.NewClient),
fx.Provide(vault.NewTransformer),
fx.Provide(vopentracing.NewTracer),
fx.Provide(ssm.NewClient),
fx.Provide(ssm.NewTransformer),
fx.Provide(sopentracing.NewTracer),
fx.Provide(NewTransformer),
fx.Provide(provider.NewTransformer),
)
)