EchoService_ServiceDesc is the grpc.ServiceDesc for EchoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var EchoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "echo.EchoService", HandlerType: (*EchoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _EchoService_Echo_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "kat/echo.proto", }
var File_kat_echo_proto protoreflect.FileDescriptor
func RegisterEchoServiceServer(s grpc.ServiceRegistrar, srv EchoServiceServer)
type EchoRequest struct { Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*EchoRequest) Descriptor() ([]byte, []int)
Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
func (x *EchoRequest) GetData() string
func (*EchoRequest) ProtoMessage()
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (x *EchoRequest) Reset()
func (x *EchoRequest) String() string
type EchoResponse struct { Backend string `protobuf:"bytes,1,opt,name=backend,proto3" json:"backend,omitempty"` Request *Request `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` Response *Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` // contains filtered or unexported fields }
func (*EchoResponse) Descriptor() ([]byte, []int)
Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
func (x *EchoResponse) GetBackend() string
func (x *EchoResponse) GetRequest() *Request
func (x *EchoResponse) GetResponse() *Response
func (*EchoResponse) ProtoMessage()
func (x *EchoResponse) ProtoReflect() protoreflect.Message
func (x *EchoResponse) Reset()
func (x *EchoResponse) String() string
EchoServiceClient is the client API for EchoService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type EchoServiceClient interface { Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) }
func NewEchoServiceClient(cc grpc.ClientConnInterface) EchoServiceClient
EchoServiceServer is the server API for EchoService service. All implementations must embed UnimplementedEchoServiceServer for forward compatibility
type EchoServiceServer interface { Echo(context.Context, *EchoRequest) (*EchoResponse, error) // contains filtered or unexported methods }
type Request struct { Headers map[string]string `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` Tls *TLS `protobuf:"bytes,2,opt,name=tls,proto3" json:"tls,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor() ([]byte, []int)
Deprecated: Use Request.ProtoReflect.Descriptor instead.
func (x *Request) GetHeaders() map[string]string
func (x *Request) GetTls() *TLS
func (*Request) ProtoMessage()
func (x *Request) ProtoReflect() protoreflect.Message
func (x *Request) Reset()
func (x *Request) String() string
type Response struct { Headers map[string]string `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // contains filtered or unexported fields }
func (*Response) Descriptor() ([]byte, []int)
Deprecated: Use Response.ProtoReflect.Descriptor instead.
func (x *Response) GetHeaders() map[string]string
func (*Response) ProtoMessage()
func (x *Response) ProtoReflect() protoreflect.Message
func (x *Response) Reset()
func (x *Response) String() string
type TLS struct { Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"` // contains filtered or unexported fields }
func (*TLS) Descriptor() ([]byte, []int)
Deprecated: Use TLS.ProtoReflect.Descriptor instead.
func (x *TLS) GetEnabled() bool
func (*TLS) ProtoMessage()
func (x *TLS) ProtoReflect() protoreflect.Message
func (x *TLS) Reset()
func (x *TLS) String() string
UnimplementedEchoServiceServer must be embedded to have forward compatible implementations.
type UnimplementedEchoServiceServer struct { }
func (UnimplementedEchoServiceServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error)
UnsafeEchoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EchoServiceServer will result in compilation errors.
type UnsafeEchoServiceServer interface {
// contains filtered or unexported methods
}