This repository has been archived by the owner on Nov 4, 2019. It is now read-only.
/
fleettracker.pb.go
156 lines (130 loc) · 5.92 KB
/
fleettracker.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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
// Code generated by protoc-gen-go.
// source: fleettracker.proto
// DO NOT EDIT!
/*
Package fleettracker is a generated protocol buffer package.
It is generated from these files:
fleettracker.proto
It has these top-level messages:
RPCEvent
HandleReply
*/
package fleettracker
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
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 RPCEvent struct {
// The sessionID of the resource.
SessionID string `protobuf:"bytes,1,opt,name=sessionID" json:"sessionID,omitempty"`
Environment string `protobuf:"bytes,2,opt,name=environment" json:"environment,omitempty"`
Service string `protobuf:"bytes,3,opt,name=service" json:"service,omitempty"`
ServingID string `protobuf:"bytes,4,opt,name=servingID" json:"servingID,omitempty"`
CodeVersion int64 `protobuf:"varint,5,opt,name=codeVersion" json:"codeVersion,omitempty"`
IsAdmin bool `protobuf:"varint,6,opt,name=isAdmin" json:"isAdmin,omitempty"`
RpcNanos uint64 `protobuf:"varint,7,opt,name=rpcNanos" json:"rpcNanos,omitempty"`
}
func (m *RPCEvent) Reset() { *m = RPCEvent{} }
func (m *RPCEvent) String() string { return proto.CompactTextString(m) }
func (*RPCEvent) ProtoMessage() {}
func (*RPCEvent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type HandleReply struct {
}
func (m *HandleReply) Reset() { *m = HandleReply{} }
func (m *HandleReply) String() string { return proto.CompactTextString(m) }
func (*HandleReply) ProtoMessage() {}
func (*HandleReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func init() {
proto.RegisterType((*RPCEvent)(nil), "fleettracker.RPCEvent")
proto.RegisterType((*HandleReply)(nil), "fleettracker.HandleReply")
}
// 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.SupportPackageIsVersion2
// Client API for FleetTracker service
type FleetTrackerClient interface {
HandleOnRPC(ctx context.Context, in *RPCEvent, opts ...grpc.CallOption) (*HandleReply, error)
}
type fleetTrackerClient struct {
cc *grpc.ClientConn
}
func NewFleetTrackerClient(cc *grpc.ClientConn) FleetTrackerClient {
return &fleetTrackerClient{cc}
}
func (c *fleetTrackerClient) HandleOnRPC(ctx context.Context, in *RPCEvent, opts ...grpc.CallOption) (*HandleReply, error) {
out := new(HandleReply)
err := grpc.Invoke(ctx, "/fleettracker.FleetTracker/HandleOnRPC", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for FleetTracker service
type FleetTrackerServer interface {
HandleOnRPC(context.Context, *RPCEvent) (*HandleReply, error)
}
func RegisterFleetTrackerServer(s *grpc.Server, srv FleetTrackerServer) {
s.RegisterService(&_FleetTracker_serviceDesc, srv)
}
func _FleetTracker_HandleOnRPC_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RPCEvent)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FleetTrackerServer).HandleOnRPC(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/fleettracker.FleetTracker/HandleOnRPC",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FleetTrackerServer).HandleOnRPC(ctx, req.(*RPCEvent))
}
return interceptor(ctx, in, info, handler)
}
var _FleetTracker_serviceDesc = grpc.ServiceDesc{
ServiceName: "fleettracker.FleetTracker",
HandlerType: (*FleetTrackerServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "HandleOnRPC",
Handler: _FleetTracker_HandleOnRPC_Handler,
},
},
Streams: []grpc.StreamDesc{},
}
func init() { proto.RegisterFile("fleettracker.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 239 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x90, 0xbd, 0x4e, 0xc3, 0x30,
0x14, 0x85, 0x09, 0x2d, 0x6d, 0x7a, 0x5b, 0x96, 0x3b, 0x20, 0x53, 0x31, 0x54, 0x99, 0x98, 0x3a,
0xc0, 0x13, 0xf0, 0x2b, 0x58, 0x00, 0x59, 0x88, 0x3d, 0x38, 0x17, 0x64, 0x91, 0x5e, 0x47, 0xb6,
0x15, 0x89, 0x57, 0xe5, 0x69, 0xb0, 0x53, 0x4c, 0xdd, 0x2d, 0xe7, 0x7c, 0xd1, 0x67, 0xdd, 0x03,
0xf8, 0xd1, 0x12, 0x79, 0x6f, 0x6b, 0xf5, 0x45, 0x76, 0xdd, 0x59, 0xe3, 0x0d, 0x2e, 0xf2, 0xae,
0xfa, 0x29, 0xa0, 0x94, 0x2f, 0x37, 0x77, 0x3d, 0xb1, 0xc7, 0x33, 0x98, 0x39, 0x72, 0x4e, 0x1b,
0x7e, 0xbc, 0x15, 0xc5, 0xaa, 0x38, 0x9f, 0xc9, 0x5d, 0x81, 0x2b, 0x98, 0x13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