fx
What is it
modules are the entry points.
- system/module is the main entry point.
fx provide:
- create instanceusing the lib’s client (one client).
- instead of instantiating the client every time the workflow runs.
package gateways import ( "go.uber.org/fx" ) var GatewayModule = fx.Provide( NewSomeGateWay )
After you inject the gateway, you call the gateway.method directly.
Config
yamls have the configs.
this is where we define our own configurations.