go.uber.org/yarpc@v1.72.1/encoding/thrift/internal/observabilitytest/test/testservicefx/doc.go (about)

     1  // Code generated by thriftrw-plugin-yarpc
     2  // @generated
     3  
     4  // Copyright (c) 2022 Uber Technologies, Inc.
     5  //
     6  // Permission is hereby granted, free of charge, to any person obtaining a copy
     7  // of this software and associated documentation files (the "Software"), to deal
     8  // in the Software without restriction, including without limitation the rights
     9  // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    10  // copies of the Software, and to permit persons to whom the Software is
    11  // furnished to do so, subject to the following conditions:
    12  //
    13  // The above copyright notice and this permission notice shall be included in
    14  // all copies or substantial portions of the Software.
    15  //
    16  // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    17  // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    18  // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    19  // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    20  // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    21  // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
    22  // THE SOFTWARE.
    23  
    24  // Package testservicefx provides better integration for Fx for services
    25  // implementing or calling TestService.
    26  //
    27  // Clients
    28  //
    29  // If you are making requests to TestService, use the Client function to inject a
    30  // TestService client into your container.
    31  //
    32  // 	fx.Provide(testservicefx.Client("..."))
    33  //
    34  // Servers
    35  //
    36  // If you are implementing TestService, provide a testserviceserver.Interface into
    37  // the container and use the Server function.
    38  //
    39  // Given,
    40  //
    41  // 	func NewTestServiceHandler() testserviceserver.Interface
    42  //
    43  // You can do the following to have the procedures of TestService made available
    44  // to an Fx application.
    45  //
    46  // 	fx.Provide(
    47  // 		NewTestServiceHandler,
    48  // 		testservicefx.Server(),
    49  // 	)
    50  package testservicefx