go.uber.org/yarpc@v1.72.1/encoding/thrift/thriftrw-plugin-yarpc/internal/tests/extends/foofx/doc.go (about)

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