-
Notifications
You must be signed in to change notification settings - Fork 0
/
play_service.pb.go
140 lines (116 loc) · 5.32 KB
/
play_service.pb.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: webui/server/play_service.proto
/*
Package server is a generated protocol buffer package.
It is generated from these files:
webui/server/play_service.proto
It has these top-level messages:
NewGameRequest
*/
package server
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import kitchensink_solitaire_model "github.com/dhendry/kitchen-sink/solitaire/model"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type NewGameRequest struct {
}
func (m *NewGameRequest) Reset() { *m = NewGameRequest{} }
func (m *NewGameRequest) String() string { return proto.CompactTextString(m) }
func (*NewGameRequest) ProtoMessage() {}
func (*NewGameRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func init() {
proto.RegisterType((*NewGameRequest)(nil), "kitchensink.solitaire.webui.server.NewGameRequest")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for PlayService service
type PlayServiceClient interface {
NewGame(ctx context.Context, in *NewGameRequest, opts ...grpc.CallOption) (*kitchensink_solitaire_model.GameState, error)
}
type playServiceClient struct {
cc *grpc.ClientConn
}
func NewPlayServiceClient(cc *grpc.ClientConn) PlayServiceClient {
return &playServiceClient{cc}
}
func (c *playServiceClient) NewGame(ctx context.Context, in *NewGameRequest, opts ...grpc.CallOption) (*kitchensink_solitaire_model.GameState, error) {
out := new(kitchensink_solitaire_model.GameState)
err := grpc.Invoke(ctx, "/kitchensink.solitaire.webui.server.PlayService/NewGame", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for PlayService service
type PlayServiceServer interface {
NewGame(context.Context, *NewGameRequest) (*kitchensink_solitaire_model.GameState, error)
}
func RegisterPlayServiceServer(s *grpc.Server, srv PlayServiceServer) {
s.RegisterService(&_PlayService_serviceDesc, srv)
}
func _PlayService_NewGame_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NewGameRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(PlayServiceServer).NewGame(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/kitchensink.solitaire.webui.server.PlayService/NewGame",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(PlayServiceServer).NewGame(ctx, req.(*NewGameRequest))
}
return interceptor(ctx, in, info, handler)
}
var _PlayService_serviceDesc = grpc.ServiceDesc{
ServiceName: "kitchensink.solitaire.webui.server.PlayService",
HandlerType: (*PlayServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "NewGame",
Handler: _PlayService_NewGame_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "webui/server/play_service.proto",
}
func init() { proto.RegisterFile("webui/server/play_service.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 239 bytes of a gzipped F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