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