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