mirror of https://github.com/k3s-io/k3s
654 lines
20 KiB
Go
654 lines
20 KiB
Go
/*
|
|
Copyright The Kubernetes Authors.
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
*/
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: konnectivity-client/proto/client/client.proto
|
|
|
|
package client
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type PacketType int32
|
|
|
|
const (
|
|
PacketType_DIAL_REQ PacketType = 0
|
|
PacketType_DIAL_RSP PacketType = 1
|
|
PacketType_CLOSE_REQ PacketType = 2
|
|
PacketType_CLOSE_RSP PacketType = 3
|
|
PacketType_DATA PacketType = 4
|
|
)
|
|
|
|
var PacketType_name = map[int32]string{
|
|
0: "DIAL_REQ",
|
|
1: "DIAL_RSP",
|
|
2: "CLOSE_REQ",
|
|
3: "CLOSE_RSP",
|
|
4: "DATA",
|
|
}
|
|
|
|
var PacketType_value = map[string]int32{
|
|
"DIAL_REQ": 0,
|
|
"DIAL_RSP": 1,
|
|
"CLOSE_REQ": 2,
|
|
"CLOSE_RSP": 3,
|
|
"DATA": 4,
|
|
}
|
|
|
|
func (x PacketType) String() string {
|
|
return proto.EnumName(PacketType_name, int32(x))
|
|
}
|
|
|
|
func (PacketType) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_fec4258d9ecd175d, []int{0}
|
|
}
|
|
|
|
type Error int32
|
|
|
|
const (
|
|
Error_EOF Error = 0
|
|
)
|
|
|
|
var Error_name = map[int32]string{
|
|
0: "EOF",
|
|
}
|
|
|
|
var Error_value = map[string]int32{
|
|
"EOF": 0,
|
|
}
|
|
|
|
func (x Error) String() string {
|
|
return proto.EnumName(Error_name, int32(x))
|
|
}
|
|
|
|
func (Error) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_fec4258d9ecd175d, []int{1}
|
|
}
|
|
|
|
type Packet struct {
|
|
Type PacketType `protobuf:"varint,1,opt,name=type,proto3,enum=PacketType" json:"type,omitempty"`
|
|
// Types that are valid to be assigned to Payload:
|
|
// *Packet_DialRequest
|
|
// *Packet_DialResponse
|
|
// *Packet_Data
|
|
// *Packet_CloseRequest
|
|
// *Packet_CloseResponse
|
|
Payload isPacket_Payload `protobuf_oneof:"payload"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Packet) Reset() { *m = Packet{} }
|
|
func (m *Packet) String() string { return proto.CompactTextString(m) }
|
|
func (*Packet) ProtoMessage() {}
|
|
func (*Packet) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fec4258d9ecd175d, []int{0}
|
|
}
|
|
|
|
func (m *Packet) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Packet.Unmarshal(m, b)
|
|
}
|
|
func (m *Packet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Packet.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Packet) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Packet.Merge(m, src)
|
|
}
|
|
func (m *Packet) XXX_Size() int {
|
|
return xxx_messageInfo_Packet.Size(m)
|
|
}
|
|
func (m *Packet) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Packet.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Packet proto.InternalMessageInfo
|
|
|
|
func (m *Packet) GetType() PacketType {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return PacketType_DIAL_REQ
|
|
}
|
|
|
|
type isPacket_Payload interface {
|
|
isPacket_Payload()
|
|
}
|
|
|
|
type Packet_DialRequest struct {
|
|
DialRequest *DialRequest `protobuf:"bytes,2,opt,name=dialRequest,proto3,oneof"`
|
|
}
|
|
|
|
type Packet_DialResponse struct {
|
|
DialResponse *DialResponse `protobuf:"bytes,3,opt,name=dialResponse,proto3,oneof"`
|
|
}
|
|
|
|
type Packet_Data struct {
|
|
Data *Data `protobuf:"bytes,4,opt,name=data,proto3,oneof"`
|
|
}
|
|
|
|
type Packet_CloseRequest struct {
|
|
CloseRequest *CloseRequest `protobuf:"bytes,5,opt,name=closeRequest,proto3,oneof"`
|
|
}
|
|
|
|
type Packet_CloseResponse struct {
|
|
CloseResponse *CloseResponse `protobuf:"bytes,6,opt,name=closeResponse,proto3,oneof"`
|
|
}
|
|
|
|
func (*Packet_DialRequest) isPacket_Payload() {}
|
|
|
|
func (*Packet_DialResponse) isPacket_Payload() {}
|
|
|
|
func (*Packet_Data) isPacket_Payload() {}
|
|
|
|
func (*Packet_CloseRequest) isPacket_Payload() {}
|
|
|
|
func (*Packet_CloseResponse) isPacket_Payload() {}
|
|
|
|
func (m *Packet) GetPayload() isPacket_Payload {
|
|
if m != nil {
|
|
return m.Payload
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Packet) GetDialRequest() *DialRequest {
|
|
if x, ok := m.GetPayload().(*Packet_DialRequest); ok {
|
|
return x.DialRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Packet) GetDialResponse() *DialResponse {
|
|
if x, ok := m.GetPayload().(*Packet_DialResponse); ok {
|
|
return x.DialResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Packet) GetData() *Data {
|
|
if x, ok := m.GetPayload().(*Packet_Data); ok {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Packet) GetCloseRequest() *CloseRequest {
|
|
if x, ok := m.GetPayload().(*Packet_CloseRequest); ok {
|
|
return x.CloseRequest
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Packet) GetCloseResponse() *CloseResponse {
|
|
if x, ok := m.GetPayload().(*Packet_CloseResponse); ok {
|
|
return x.CloseResponse
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*Packet) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*Packet_DialRequest)(nil),
|
|
(*Packet_DialResponse)(nil),
|
|
(*Packet_Data)(nil),
|
|
(*Packet_CloseRequest)(nil),
|
|
(*Packet_CloseResponse)(nil),
|
|
}
|
|
}
|
|
|
|
type DialRequest struct {
|
|
// tcp or udp?
|
|
Protocol string `protobuf:"bytes,1,opt,name=protocol,proto3" json:"protocol,omitempty"`
|
|
// node:port
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
// random id for client, maybe should be longer
|
|
Random int64 `protobuf:"varint,3,opt,name=random,proto3" json:"random,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DialRequest) Reset() { *m = DialRequest{} }
|
|
func (m *DialRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*DialRequest) ProtoMessage() {}
|
|
func (*DialRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fec4258d9ecd175d, []int{1}
|
|
}
|
|
|
|
func (m *DialRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DialRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *DialRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DialRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DialRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DialRequest.Merge(m, src)
|
|
}
|
|
func (m *DialRequest) XXX_Size() int {
|
|
return xxx_messageInfo_DialRequest.Size(m)
|
|
}
|
|
func (m *DialRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DialRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DialRequest proto.InternalMessageInfo
|
|
|
|
func (m *DialRequest) GetProtocol() string {
|
|
if m != nil {
|
|
return m.Protocol
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DialRequest) GetAddress() string {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DialRequest) GetRandom() int64 {
|
|
if m != nil {
|
|
return m.Random
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DialResponse struct {
|
|
// error failed reason; enum?
|
|
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
// connectID indicates the identifier of the connection
|
|
ConnectID int64 `protobuf:"varint,2,opt,name=connectID,proto3" json:"connectID,omitempty"`
|
|
// random copied from DialRequest
|
|
Random int64 `protobuf:"varint,3,opt,name=random,proto3" json:"random,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DialResponse) Reset() { *m = DialResponse{} }
|
|
func (m *DialResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*DialResponse) ProtoMessage() {}
|
|
func (*DialResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fec4258d9ecd175d, []int{2}
|
|
}
|
|
|
|
func (m *DialResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DialResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *DialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DialResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DialResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DialResponse.Merge(m, src)
|
|
}
|
|
func (m *DialResponse) XXX_Size() int {
|
|
return xxx_messageInfo_DialResponse.Size(m)
|
|
}
|
|
func (m *DialResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DialResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DialResponse proto.InternalMessageInfo
|
|
|
|
func (m *DialResponse) GetError() string {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *DialResponse) GetConnectID() int64 {
|
|
if m != nil {
|
|
return m.ConnectID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *DialResponse) GetRandom() int64 {
|
|
if m != nil {
|
|
return m.Random
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CloseRequest struct {
|
|
// connectID of the stream to close
|
|
ConnectID int64 `protobuf:"varint,1,opt,name=connectID,proto3" json:"connectID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CloseRequest) Reset() { *m = CloseRequest{} }
|
|
func (m *CloseRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CloseRequest) ProtoMessage() {}
|
|
func (*CloseRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fec4258d9ecd175d, []int{3}
|
|
}
|
|
|
|
func (m *CloseRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CloseRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *CloseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CloseRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CloseRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CloseRequest.Merge(m, src)
|
|
}
|
|
func (m *CloseRequest) XXX_Size() int {
|
|
return xxx_messageInfo_CloseRequest.Size(m)
|
|
}
|
|
func (m *CloseRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CloseRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CloseRequest proto.InternalMessageInfo
|
|
|
|
func (m *CloseRequest) GetConnectID() int64 {
|
|
if m != nil {
|
|
return m.ConnectID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CloseResponse struct {
|
|
// error message
|
|
Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
|
|
// connectID indicates the identifier of the connection
|
|
ConnectID int64 `protobuf:"varint,2,opt,name=connectID,proto3" json:"connectID,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CloseResponse) Reset() { *m = CloseResponse{} }
|
|
func (m *CloseResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CloseResponse) ProtoMessage() {}
|
|
func (*CloseResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fec4258d9ecd175d, []int{4}
|
|
}
|
|
|
|
func (m *CloseResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CloseResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *CloseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CloseResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CloseResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CloseResponse.Merge(m, src)
|
|
}
|
|
func (m *CloseResponse) XXX_Size() int {
|
|
return xxx_messageInfo_CloseResponse.Size(m)
|
|
}
|
|
func (m *CloseResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CloseResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CloseResponse proto.InternalMessageInfo
|
|
|
|
func (m *CloseResponse) GetError() string {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CloseResponse) GetConnectID() int64 {
|
|
if m != nil {
|
|
return m.ConnectID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Data struct {
|
|
// connectID to connect to
|
|
ConnectID int64 `protobuf:"varint,1,opt,name=connectID,proto3" json:"connectID,omitempty"`
|
|
// error message if error happens
|
|
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
// stream data
|
|
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Data) Reset() { *m = Data{} }
|
|
func (m *Data) String() string { return proto.CompactTextString(m) }
|
|
func (*Data) ProtoMessage() {}
|
|
func (*Data) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_fec4258d9ecd175d, []int{5}
|
|
}
|
|
|
|
func (m *Data) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Data.Unmarshal(m, b)
|
|
}
|
|
func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Data.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Data) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Data.Merge(m, src)
|
|
}
|
|
func (m *Data) XXX_Size() int {
|
|
return xxx_messageInfo_Data.Size(m)
|
|
}
|
|
func (m *Data) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Data.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Data proto.InternalMessageInfo
|
|
|
|
func (m *Data) GetConnectID() int64 {
|
|
if m != nil {
|
|
return m.ConnectID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Data) GetError() string {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Data) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("PacketType", PacketType_name, PacketType_value)
|
|
proto.RegisterEnum("Error", Error_name, Error_value)
|
|
proto.RegisterType((*Packet)(nil), "Packet")
|
|
proto.RegisterType((*DialRequest)(nil), "DialRequest")
|
|
proto.RegisterType((*DialResponse)(nil), "DialResponse")
|
|
proto.RegisterType((*CloseRequest)(nil), "CloseRequest")
|
|
proto.RegisterType((*CloseResponse)(nil), "CloseResponse")
|
|
proto.RegisterType((*Data)(nil), "Data")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("konnectivity-client/proto/client/client.proto", fileDescriptor_fec4258d9ecd175d)
|
|
}
|
|
|
|
var fileDescriptor_fec4258d9ecd175d = []byte{
|
|
// 472 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xd1, 0x6e, 0x9b, 0x30,
|
|
0x14, 0x85, 0x00, 0x49, 0xb8, 0x21, 0x15, 0xb2, 0xa6, 0x09, 0x75, 0x93, 0x5a, 0xf1, 0x14, 0x55,
|
|
0x0b, 0x54, 0xa9, 0x34, 0xed, 0x35, 0x0d, 0xa9, 0x52, 0xa9, 0x5a, 0x99, 0xd3, 0xa7, 0xee, 0x61,
|
|
0xf2, 0xc0, 0x9a, 0x50, 0x18, 0x66, 0xb6, 0x97, 0x8d, 0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 0x6a, 0xdf, 0xc1, 0xe9, 0xe1,
|
|
0xc7, 0xd7, 0x66, 0xfa, 0xa5, 0x7e, 0x7d, 0xf3, 0x18, 0x89, 0xec, 0x8b, 0x08, 0x76, 0xef, 0x44,
|
|
0x90, 0xb1, 0x90, 0x94, 0x99, 0xa0, 0x7c, 0x4f, 0xf9, 0xbc, 0xa0, 0xf2, 0x07, 0xe3, 0xbb, 0x79,
|
|
0x59, 0xcb, 0xc3, 0xff, 0xbd, 0xc6, 0xcf, 0x43, 0x85, 0xae, 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff,
|
|
0x64, 0xe0, 0x62, 0xbe, 0xb8, 0x03, 0x00, 0x00,
|
|
}
|
|
|
|
// 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
|
|
|
|
// ProxyServiceClient is the client API for ProxyService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type ProxyServiceClient interface {
|
|
Proxy(ctx context.Context, opts ...grpc.CallOption) (ProxyService_ProxyClient, error)
|
|
}
|
|
|
|
type proxyServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewProxyServiceClient(cc *grpc.ClientConn) ProxyServiceClient {
|
|
return &proxyServiceClient{cc}
|
|
}
|
|
|
|
func (c *proxyServiceClient) Proxy(ctx context.Context, opts ...grpc.CallOption) (ProxyService_ProxyClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_ProxyService_serviceDesc.Streams[0], "/ProxyService/Proxy", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &proxyServiceProxyClient{stream}
|
|
return x, nil
|
|
}
|
|
|
|
type ProxyService_ProxyClient interface {
|
|
Send(*Packet) error
|
|
Recv() (*Packet, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type proxyServiceProxyClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *proxyServiceProxyClient) Send(m *Packet) error {
|
|
return x.ClientStream.SendMsg(m)
|
|
}
|
|
|
|
func (x *proxyServiceProxyClient) Recv() (*Packet, error) {
|
|
m := new(Packet)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
// ProxyServiceServer is the server API for ProxyService service.
|
|
type ProxyServiceServer interface {
|
|
Proxy(ProxyService_ProxyServer) error
|
|
}
|
|
|
|
// UnimplementedProxyServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedProxyServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedProxyServiceServer) Proxy(srv ProxyService_ProxyServer) error {
|
|
return status.Errorf(codes.Unimplemented, "method Proxy not implemented")
|
|
}
|
|
|
|
func RegisterProxyServiceServer(s *grpc.Server, srv ProxyServiceServer) {
|
|
s.RegisterService(&_ProxyService_serviceDesc, srv)
|
|
}
|
|
|
|
func _ProxyService_Proxy_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
return srv.(ProxyServiceServer).Proxy(&proxyServiceProxyServer{stream})
|
|
}
|
|
|
|
type ProxyService_ProxyServer interface {
|
|
Send(*Packet) error
|
|
Recv() (*Packet, error)
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type proxyServiceProxyServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *proxyServiceProxyServer) Send(m *Packet) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func (x *proxyServiceProxyServer) Recv() (*Packet, error) {
|
|
m := new(Packet)
|
|
if err := x.ServerStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
var _ProxyService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ProxyService",
|
|
HandlerType: (*ProxyServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "Proxy",
|
|
Handler: _ProxyService_Proxy_Handler,
|
|
ServerStreams: true,
|
|
ClientStreams: true,
|
|
},
|
|
},
|
|
Metadata: "konnectivity-client/proto/client/client.proto",
|
|
}
|