forked from yarpc/yarpc-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.go
39 lines (33 loc) · 840 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
// Code generated by thriftrw-plugin-yarpc
// @generated
package emptyserviceclient
import (
"go.uber.org/yarpc"
"go.uber.org/yarpc/api/transport"
"go.uber.org/yarpc/encoding/thrift"
"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...),
}
}
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
}