Documentation ¶
Index ¶
- Variables
- func RegisterGrpcEchoServer(s grpc.ServiceRegistrar, srv GrpcEchoServer)
- type Assertions
- func (*Assertions) Descriptor() ([]byte, []int)deprecated
- func (x *Assertions) GetAuthority() string
- func (x *Assertions) GetContext() *Context
- func (x *Assertions) GetFullyQualifiedMethod() string
- func (x *Assertions) GetHeaders() []*Header
- func (x *Assertions) GetTlsAssertions() *TLSAssertions
- func (*Assertions) ProtoMessage()
- func (x *Assertions) ProtoReflect() protoreflect.Message
- func (x *Assertions) Reset()
- func (x *Assertions) String() string
- type Context
- func (*Context) Descriptor() ([]byte, []int)deprecated
- func (x *Context) GetIngress() string
- func (x *Context) GetNamespace() string
- func (x *Context) GetPod() string
- func (x *Context) GetServiceName() string
- func (*Context) ProtoMessage()
- func (x *Context) ProtoReflect() protoreflect.Message
- func (x *Context) Reset()
- func (x *Context) String() string
- type EchoRequest
- type EchoResponse
- func (*EchoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EchoResponse) GetAssertions() *Assertions
- func (x *EchoResponse) GetRequest() *EchoRequest
- func (*EchoResponse) ProtoMessage()
- func (x *EchoResponse) ProtoReflect() protoreflect.Message
- func (x *EchoResponse) Reset()
- func (x *EchoResponse) String() string
- type GrpcEchoClient
- type GrpcEchoServer
- type Header
- type TLSAssertions
- func (*TLSAssertions) Descriptor() ([]byte, []int)deprecated
- func (x *TLSAssertions) GetCipherSuite() string
- func (x *TLSAssertions) GetNegotiatedProtocol() string
- func (x *TLSAssertions) GetPeerCertificates() []string
- func (x *TLSAssertions) GetServerName() string
- func (x *TLSAssertions) GetVersion() string
- func (*TLSAssertions) ProtoMessage()
- func (x *TLSAssertions) ProtoReflect() protoreflect.Message
- func (x *TLSAssertions) Reset()
- func (x *TLSAssertions) String() string
- type UnimplementedGrpcEchoServer
- type UnsafeGrpcEchoServer
Constants ¶
This section is empty.
Variables ¶
var File_grpcecho_proto protoreflect.FileDescriptor
var GrpcEcho_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gateway_api_conformance.echo_basic.grpcecho.GrpcEcho", HandlerType: (*GrpcEchoServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Echo", Handler: _GrpcEcho_Echo_Handler, }, { MethodName: "EchoTwo", Handler: _GrpcEcho_EchoTwo_Handler, }, { MethodName: "EchoThree", Handler: _GrpcEcho_EchoThree_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "grpcecho.proto", }
GrpcEcho_ServiceDesc is the grpc.ServiceDesc for GrpcEcho service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterGrpcEchoServer ¶
func RegisterGrpcEchoServer(s grpc.ServiceRegistrar, srv GrpcEchoServer)
Types ¶
type Assertions ¶
type Assertions struct { // The fully qualified method of the current RPC, e.g. // "/gateway_api_conformance.echo_basic.grpcecho.GrpcEcho/Echo" FullyQualifiedMethod string `protobuf:"bytes,1,opt,name=fully_qualified_method,json=fullyQualifiedMethod,proto3" json:"fully_qualified_method,omitempty"` // The headers present in the request. Headers []*Header `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` // The :authority pseudo-header of the request. Authority string `protobuf:"bytes,3,opt,name=authority,proto3" json:"authority,omitempty"` // Information associated with the conformance server deployment. Context *Context `protobuf:"bytes,4,opt,name=context,proto3" json:"context,omitempty"` // Information related to the TLS connection between the client and the server. TlsAssertions *TLSAssertions `protobuf:"bytes,5,opt,name=tls_assertions,json=tlsAssertions,proto3" json:"tls_assertions,omitempty"` // contains filtered or unexported fields }
func (*Assertions) Descriptor
deprecated
func (*Assertions) Descriptor() ([]byte, []int)
Deprecated: Use Assertions.ProtoReflect.Descriptor instead.
func (*Assertions) GetAuthority ¶
func (x *Assertions) GetAuthority() string
func (*Assertions) GetContext ¶
func (x *Assertions) GetContext() *Context
func (*Assertions) GetFullyQualifiedMethod ¶
func (x *Assertions) GetFullyQualifiedMethod() string
func (*Assertions) GetHeaders ¶
func (x *Assertions) GetHeaders() []*Header
func (*Assertions) GetTlsAssertions ¶
func (x *Assertions) GetTlsAssertions() *TLSAssertions
func (*Assertions) ProtoMessage ¶
func (*Assertions) ProtoMessage()
func (*Assertions) ProtoReflect ¶
func (x *Assertions) ProtoReflect() protoreflect.Message
func (*Assertions) Reset ¶
func (x *Assertions) Reset()
func (*Assertions) String ¶
func (x *Assertions) String() string
type Context ¶
type Context struct { // The Kubernetes namespace in which this server is running. Populated by the // NAMESPACE environment variable. Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` // The name of the ingress controller under test. Populated by the INGRESS_NAME // environment variable. Ingress string `protobuf:"bytes,2,opt,name=ingress,proto3" json:"ingress,omitempty"` // The name service cannot be used here since it is a reserved word. Populated by the // SERVICE_NAME environment variable. ServiceName string `protobuf:"bytes,3,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // The name of the pod in which this server is running. Populated by the POD_NAME // environment variable. Pod string `protobuf:"bytes,4,opt,name=pod,proto3" json:"pod,omitempty"` // contains filtered or unexported fields }
func (*Context) Descriptor
deprecated
func (*Context) GetIngress ¶
func (*Context) GetNamespace ¶
func (*Context) GetServiceName ¶
func (*Context) ProtoMessage ¶
func (*Context) ProtoMessage()
func (*Context) ProtoReflect ¶
func (x *Context) ProtoReflect() protoreflect.Message
type EchoRequest ¶
type EchoRequest struct {
// contains filtered or unexported fields
}
func (*EchoRequest) Descriptor
deprecated
func (*EchoRequest) Descriptor() ([]byte, []int)
Deprecated: Use EchoRequest.ProtoReflect.Descriptor instead.
func (*EchoRequest) ProtoMessage ¶
func (*EchoRequest) ProtoMessage()
func (*EchoRequest) ProtoReflect ¶
func (x *EchoRequest) ProtoReflect() protoreflect.Message
func (*EchoRequest) Reset ¶
func (x *EchoRequest) Reset()
func (*EchoRequest) String ¶
func (x *EchoRequest) String() string
type EchoResponse ¶
type EchoResponse struct { Assertions *Assertions `protobuf:"bytes,1,opt,name=assertions,proto3" json:"assertions,omitempty"` Request *EchoRequest `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` // contains filtered or unexported fields }
func (*EchoResponse) Descriptor
deprecated
func (*EchoResponse) Descriptor() ([]byte, []int)
Deprecated: Use EchoResponse.ProtoReflect.Descriptor instead.
func (*EchoResponse) GetAssertions ¶
func (x *EchoResponse) GetAssertions() *Assertions
func (*EchoResponse) GetRequest ¶
func (x *EchoResponse) GetRequest() *EchoRequest
func (*EchoResponse) ProtoMessage ¶
func (*EchoResponse) ProtoMessage()
func (*EchoResponse) ProtoReflect ¶
func (x *EchoResponse) ProtoReflect() protoreflect.Message
func (*EchoResponse) Reset ¶
func (x *EchoResponse) Reset()
func (*EchoResponse) String ¶
func (x *EchoResponse) String() string
type GrpcEchoClient ¶
type GrpcEchoClient interface { Echo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) // Behaves identically to Echo, but lives at a different method to // emulate the service having more than one method. EchoTwo(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) // An intentionally unimplemented method. EchoThree(ctx context.Context, in *EchoRequest, opts ...grpc.CallOption) (*EchoResponse, error) }
GrpcEchoClient is the client API for GrpcEcho 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.
func NewGrpcEchoClient ¶
func NewGrpcEchoClient(cc grpc.ClientConnInterface) GrpcEchoClient
type GrpcEchoServer ¶
type GrpcEchoServer interface { Echo(context.Context, *EchoRequest) (*EchoResponse, error) // Behaves identically to Echo, but lives at a different method to // emulate the service having more than one method. EchoTwo(context.Context, *EchoRequest) (*EchoResponse, error) // An intentionally unimplemented method. EchoThree(context.Context, *EchoRequest) (*EchoResponse, error) // contains filtered or unexported methods }
GrpcEchoServer is the server API for GrpcEcho service. All implementations must embed UnimplementedGrpcEchoServer for forward compatibility
type Header ¶
type Header struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Header) Descriptor
deprecated
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type TLSAssertions ¶
type TLSAssertions struct { // The TLS version used by the connection, e.g. "TLSv1.3" Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` // The negotatiated protocol. NegotiatedProtocol string `protobuf:"bytes,2,opt,name=negotiated_protocol,json=negotiatedProtocol,proto3" json:"negotiated_protocol,omitempty"` // The server name indication extension sent by the client. ServerName string `protobuf:"bytes,3,opt,name=server_name,json=serverName,proto3" json:"server_name,omitempty"` // The cipher suite negotatiated for the connection, e.g. "TLS_EDCHE_ECDSA_WITH_AES_128_GCM_SHA256" CipherSuite string `protobuf:"bytes,4,opt,name=cipher_suite,json=cipherSuite,proto3" json:"cipher_suite,omitempty"` // The parsed certificates sent by the peer, in the order in which they were sent. PeerCertificates []string `protobuf:"bytes,5,rep,name=peer_certificates,json=peerCertificates,proto3" json:"peer_certificates,omitempty"` // contains filtered or unexported fields }
func (*TLSAssertions) Descriptor
deprecated
func (*TLSAssertions) Descriptor() ([]byte, []int)
Deprecated: Use TLSAssertions.ProtoReflect.Descriptor instead.
func (*TLSAssertions) GetCipherSuite ¶
func (x *TLSAssertions) GetCipherSuite() string
func (*TLSAssertions) GetNegotiatedProtocol ¶
func (x *TLSAssertions) GetNegotiatedProtocol() string
func (*TLSAssertions) GetPeerCertificates ¶
func (x *TLSAssertions) GetPeerCertificates() []string
func (*TLSAssertions) GetServerName ¶
func (x *TLSAssertions) GetServerName() string
func (*TLSAssertions) GetVersion ¶
func (x *TLSAssertions) GetVersion() string
func (*TLSAssertions) ProtoMessage ¶
func (*TLSAssertions) ProtoMessage()
func (*TLSAssertions) ProtoReflect ¶
func (x *TLSAssertions) ProtoReflect() protoreflect.Message
func (*TLSAssertions) Reset ¶
func (x *TLSAssertions) Reset()
func (*TLSAssertions) String ¶
func (x *TLSAssertions) String() string
type UnimplementedGrpcEchoServer ¶
type UnimplementedGrpcEchoServer struct { }
UnimplementedGrpcEchoServer must be embedded to have forward compatible implementations.
func (UnimplementedGrpcEchoServer) Echo ¶
func (UnimplementedGrpcEchoServer) Echo(context.Context, *EchoRequest) (*EchoResponse, error)
func (UnimplementedGrpcEchoServer) EchoThree ¶
func (UnimplementedGrpcEchoServer) EchoThree(context.Context, *EchoRequest) (*EchoResponse, error)
func (UnimplementedGrpcEchoServer) EchoTwo ¶
func (UnimplementedGrpcEchoServer) EchoTwo(context.Context, *EchoRequest) (*EchoResponse, error)
type UnsafeGrpcEchoServer ¶
type UnsafeGrpcEchoServer interface {
// contains filtered or unexported methods
}
UnsafeGrpcEchoServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GrpcEchoServer will result in compilation errors.