go.uber.org/yarpc@v1.72.1/encoding/thrift/thriftrw-plugin-yarpc/internal/tests/weather/weatherfx/doc.go (about) 1 // Code generated by thriftrw-plugin-yarpc 2 // @generated 3 4 // Package weatherfx provides better integration for Fx for services 5 // implementing or calling Weather. 6 // 7 // # Clients 8 // 9 // If you are making requests to Weather, use the Client function to inject a 10 // Weather client into your container. 11 // 12 // fx.Provide(weatherfx.Client("...")) 13 // 14 // # Servers 15 // 16 // If you are implementing Weather, provide a weatherserver.Interface into 17 // the container and use the Server function. 18 // 19 // Given, 20 // 21 // func NewWeatherHandler() weatherserver.Interface 22 // 23 // You can do the following to have the procedures of Weather made available 24 // to an Fx application. 25 // 26 // fx.Provide( 27 // NewWeatherHandler, 28 // weatherfx.Server(), 29 // ) 30 package weatherfx