-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrpc_client_err.go
57 lines (42 loc) · 1.86 KB
/
grpc_client_err.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
45
46
47
48
49
50
51
52
53
54
55
56
57
package zongzi
import (
"context"
"google.golang.org/grpc"
"github.com/logbn/zongzi/internal"
)
type grpcClientErr struct {
err error
}
func (c *grpcClientErr) Ping(ctx context.Context, in *internal.PingRequest, opts ...grpc.CallOption) (*internal.PingResponse, error) {
return nil, c.err
}
func (c *grpcClientErr) Probe(ctx context.Context, in *internal.ProbeRequest, opts ...grpc.CallOption) (*internal.ProbeResponse, error) {
return nil, c.err
}
func (c *grpcClientErr) Info(ctx context.Context, in *internal.InfoRequest, opts ...grpc.CallOption) (*internal.InfoResponse, error) {
return nil, c.err
}
func (c *grpcClientErr) Members(ctx context.Context, in *internal.MembersRequest, opts ...grpc.CallOption) (*internal.MembersResponse, error) {
return nil, c.err
}
func (c *grpcClientErr) Join(ctx context.Context, in *internal.JoinRequest, opts ...grpc.CallOption) (*internal.JoinResponse, error) {
return nil, c.err
}
func (c *grpcClientErr) Add(ctx context.Context, in *internal.AddRequest, opts ...grpc.CallOption) (*internal.AddResponse, error) {
return nil, c.err
}
func (c *grpcClientErr) Index(ctx context.Context, in *internal.IndexRequest, opts ...grpc.CallOption) (*internal.IndexResponse, error) {
return nil, c.err
}
func (c *grpcClientErr) Commit(ctx context.Context, in *internal.CommitRequest, opts ...grpc.CallOption) (*internal.CommitResponse, error) {
return nil, c.err
}
func (c *grpcClientErr) Apply(ctx context.Context, in *internal.ApplyRequest, opts ...grpc.CallOption) (*internal.ApplyResponse, error) {
return nil, c.err
}
func (c *grpcClientErr) Read(ctx context.Context, in *internal.ReadRequest, opts ...grpc.CallOption) (*internal.ReadResponse, error) {
return nil, c.err
}
func (c *grpcClientErr) Watch(ctx context.Context, in *internal.WatchRequest, opts ...grpc.CallOption) (internal.Internal_WatchClient, error) {
return nil, c.err
}