-
Notifications
You must be signed in to change notification settings - Fork 103
/
client.go
44 lines (38 loc) · 1005 Bytes
/
client.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Code generated by thriftrw-plugin-yarpc
// @generated
package emptyserviceclient
import (
yarpc "go.uber.org/yarpc"
transport "go.uber.org/yarpc/api/transport"
thrift "go.uber.org/yarpc/encoding/thrift"
reflect "reflect"
)
// Interface is a client for the EmptyService service.
type Interface interface {
}
// New builds a new client for the EmptyService service.
//
// client := emptyserviceclient.New(dispatcher.ClientConfig("emptyservice"))
func New(c transport.ClientConfig, opts ...thrift.ClientOption) Interface {
return client{
c: thrift.New(thrift.Config{
Service: "EmptyService",
ClientConfig: c,
}, opts...),
nwc: thrift.NewNoWire(thrift.Config{
Service: "EmptyService",
ClientConfig: c,
}, opts...),
}
}
func init() {
yarpc.RegisterClientBuilder(
func(c transport.ClientConfig, f reflect.StructField) Interface {
return New(c, thrift.ClientBuilderOptions(c, f)...)
},
)
}
type client struct {
c thrift.Client
nwc thrift.NoWireClient
}