Documentation ¶
Index ¶
- Variables
- type DestinationSpec
- func (m *DestinationSpec) Clone() proto.Message
- func (*DestinationSpec) Descriptor() ([]byte, []int)deprecated
- func (m *DestinationSpec) Equal(that interface{}) bool
- func (x *DestinationSpec) GetFunction() string
- func (x *DestinationSpec) GetPackage() string
- func (x *DestinationSpec) GetParameters() *transformation.Parameters
- func (x *DestinationSpec) GetService() string
- func (m *DestinationSpec) Hash(hasher hash.Hash64) (uint64, error)deprecated
- func (m *DestinationSpec) HashUnique(hasher hash.Hash64) (uint64, error)
- func (*DestinationSpec) ProtoMessage()
- func (x *DestinationSpec) ProtoReflect() protoreflect.Message
- func (x *DestinationSpec) Reset()
- func (x *DestinationSpec) String() string
- type ServiceSpec
- func (m *ServiceSpec) Clone() proto.Message
- func (*ServiceSpec) Descriptor() ([]byte, []int)deprecated
- func (m *ServiceSpec) Equal(that interface{}) bool
- func (x *ServiceSpec) GetDescriptors() []byte
- func (x *ServiceSpec) GetGrpcServices() []*ServiceSpec_GrpcServicedeprecated
- func (m *ServiceSpec) Hash(hasher hash.Hash64) (uint64, error)deprecated
- func (m *ServiceSpec) HashUnique(hasher hash.Hash64) (uint64, error)
- func (*ServiceSpec) ProtoMessage()
- func (x *ServiceSpec) ProtoReflect() protoreflect.Message
- func (x *ServiceSpec) Reset()
- func (x *ServiceSpec) String() string
- type ServiceSpec_GrpcService
- func (m *ServiceSpec_GrpcService) Clone() proto.Message
- func (*ServiceSpec_GrpcService) Descriptor() ([]byte, []int)deprecated
- func (m *ServiceSpec_GrpcService) Equal(that interface{}) bool
- func (x *ServiceSpec_GrpcService) GetFunctionNames() []string
- func (x *ServiceSpec_GrpcService) GetPackageName() string
- func (x *ServiceSpec_GrpcService) GetServiceName() string
- func (m *ServiceSpec_GrpcService) Hash(hasher hash.Hash64) (uint64, error)deprecated
- func (m *ServiceSpec_GrpcService) HashUnique(hasher hash.Hash64) (uint64, error)
- func (*ServiceSpec_GrpcService) ProtoMessage()
- func (x *ServiceSpec_GrpcService) ProtoReflect() protoreflect.Message
- func (x *ServiceSpec_GrpcService) Reset()
- func (x *ServiceSpec_GrpcService) String() string
Constants ¶
This section is empty.
Variables ¶
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_grpc_grpc_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type DestinationSpec ¶
type DestinationSpec struct { // The proto package of the function. Package string `protobuf:"bytes,1,opt,name=package,proto3" json:"package,omitempty"` // The name of the service of the function. Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // The name of the function. Function string `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"` // Parameters describe how to extract the function parameters from the // request. Parameters *transformation.Parameters `protobuf:"bytes,4,opt,name=parameters,proto3" json:"parameters,omitempty"` // contains filtered or unexported fields }
This is only for upstream with Grpc service spec. Deprecated: prefer providing descriptors on Upstream in GrpcJsonTranscoder
func (*DestinationSpec) Clone ¶ added in v1.8.24
func (m *DestinationSpec) Clone() proto.Message
Clone function
func (*DestinationSpec) Descriptor
deprecated
func (*DestinationSpec) Descriptor() ([]byte, []int)
Deprecated: Use DestinationSpec.ProtoReflect.Descriptor instead.
func (*DestinationSpec) Equal ¶
func (m *DestinationSpec) Equal(that interface{}) bool
Equal function
func (*DestinationSpec) GetFunction ¶
func (x *DestinationSpec) GetFunction() string
func (*DestinationSpec) GetPackage ¶
func (x *DestinationSpec) GetPackage() string
func (*DestinationSpec) GetParameters ¶
func (x *DestinationSpec) GetParameters() *transformation.Parameters
func (*DestinationSpec) GetService ¶
func (x *DestinationSpec) GetService() string
func (*DestinationSpec) Hash
deprecated
added in
v1.2.13
func (m *DestinationSpec) Hash(hasher hash.Hash64) (uint64, error)
Hash function
Deprecated: due to hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions. Prefer the HashUnique function instead.
func (*DestinationSpec) HashUnique ¶
func (m *DestinationSpec) HashUnique(hasher hash.Hash64) (uint64, error)
HashUnique function generates a hash of the object that is unique to the object by hashing field name and value pairs. Replaces Hash due to original hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions.
func (*DestinationSpec) ProtoMessage ¶
func (*DestinationSpec) ProtoMessage()
func (*DestinationSpec) ProtoReflect ¶ added in v1.6.0
func (x *DestinationSpec) ProtoReflect() protoreflect.Message
func (*DestinationSpec) Reset ¶
func (x *DestinationSpec) Reset()
func (*DestinationSpec) String ¶
func (x *DestinationSpec) String() string
type ServiceSpec ¶
type ServiceSpec struct { // Descriptors that contain information of the services listed below. // this is a serialized google.protobuf.FileDescriptorSet. These will be discovered if FDS is enabled and may be modified by Gloo. Descriptors []byte `protobuf:"bytes,1,opt,name=descriptors,proto3" json:"descriptors,omitempty"` // List of services used by this upstream. These services must be present in the descriptors. // // Deprecated: Marked as deprecated in github.com/solo-io/gloo/projects/gloo/api/v1/options/grpc/grpc.proto. GrpcServices []*ServiceSpec_GrpcService `protobuf:"bytes,2,rep,name=grpc_services,json=grpcServices,proto3" json:"grpc_services,omitempty"` // contains filtered or unexported fields }
Service spec describing GRPC upstreams. This will usually be filled automatically via function discovery (if the upstream supports reflection). If your upstream service is a GRPC service, use this service spec (an empty spec is fine), to make sure that traffic to it is routed with http2. Deprecated: prefer using GrpcJsonTranscoder
func (*ServiceSpec) Clone ¶ added in v1.8.24
func (m *ServiceSpec) Clone() proto.Message
Clone function
func (*ServiceSpec) Descriptor
deprecated
func (*ServiceSpec) Descriptor() ([]byte, []int)
Deprecated: Use ServiceSpec.ProtoReflect.Descriptor instead.
func (*ServiceSpec) GetDescriptors ¶
func (x *ServiceSpec) GetDescriptors() []byte
func (*ServiceSpec) GetGrpcServices
deprecated
func (x *ServiceSpec) GetGrpcServices() []*ServiceSpec_GrpcService
Deprecated: Marked as deprecated in github.com/solo-io/gloo/projects/gloo/api/v1/options/grpc/grpc.proto.
func (*ServiceSpec) Hash
deprecated
added in
v1.2.13
func (m *ServiceSpec) Hash(hasher hash.Hash64) (uint64, error)
Hash function
Deprecated: due to hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions. Prefer the HashUnique function instead.
func (*ServiceSpec) HashUnique ¶
func (m *ServiceSpec) HashUnique(hasher hash.Hash64) (uint64, error)
HashUnique function generates a hash of the object that is unique to the object by hashing field name and value pairs. Replaces Hash due to original hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions.
func (*ServiceSpec) ProtoMessage ¶
func (*ServiceSpec) ProtoMessage()
func (*ServiceSpec) ProtoReflect ¶ added in v1.6.0
func (x *ServiceSpec) ProtoReflect() protoreflect.Message
func (*ServiceSpec) Reset ¶
func (x *ServiceSpec) Reset()
func (*ServiceSpec) String ¶
func (x *ServiceSpec) String() string
type ServiceSpec_GrpcService ¶
type ServiceSpec_GrpcService struct { // The package of this service. PackageName string `protobuf:"bytes,1,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"` // The service name of this service. ServiceName string `protobuf:"bytes,2,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"` // The functions available in this service. FunctionNames []string `protobuf:"bytes,3,rep,name=function_names,json=functionNames,proto3" json:"function_names,omitempty"` // contains filtered or unexported fields }
Describes a grpc service
func (*ServiceSpec_GrpcService) Clone ¶ added in v1.8.24
func (m *ServiceSpec_GrpcService) Clone() proto.Message
Clone function
func (*ServiceSpec_GrpcService) Descriptor
deprecated
func (*ServiceSpec_GrpcService) Descriptor() ([]byte, []int)
Deprecated: Use ServiceSpec_GrpcService.ProtoReflect.Descriptor instead.
func (*ServiceSpec_GrpcService) Equal ¶
func (m *ServiceSpec_GrpcService) Equal(that interface{}) bool
Equal function
func (*ServiceSpec_GrpcService) GetFunctionNames ¶
func (x *ServiceSpec_GrpcService) GetFunctionNames() []string
func (*ServiceSpec_GrpcService) GetPackageName ¶
func (x *ServiceSpec_GrpcService) GetPackageName() string
func (*ServiceSpec_GrpcService) GetServiceName ¶
func (x *ServiceSpec_GrpcService) GetServiceName() string
func (*ServiceSpec_GrpcService) Hash
deprecated
added in
v1.2.13
func (m *ServiceSpec_GrpcService) Hash(hasher hash.Hash64) (uint64, error)
Hash function
Deprecated: due to hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions. Prefer the HashUnique function instead.
func (*ServiceSpec_GrpcService) HashUnique ¶
func (m *ServiceSpec_GrpcService) HashUnique(hasher hash.Hash64) (uint64, error)
HashUnique function generates a hash of the object that is unique to the object by hashing field name and value pairs. Replaces Hash due to original hashing implemention only using field values. The omission of the field name in the hash calculation can lead to hash collisions.
func (*ServiceSpec_GrpcService) ProtoMessage ¶
func (*ServiceSpec_GrpcService) ProtoMessage()
func (*ServiceSpec_GrpcService) ProtoReflect ¶ added in v1.6.0
func (x *ServiceSpec_GrpcService) ProtoReflect() protoreflect.Message
func (*ServiceSpec_GrpcService) Reset ¶
func (x *ServiceSpec_GrpcService) Reset()
func (*ServiceSpec_GrpcService) String ¶
func (x *ServiceSpec_GrpcService) String() string