grpc

package
v1.16.0-beta22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2023 License: Apache-2.0 Imports: 20 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
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 added in v1.2.13

func (m *DestinationSpec) Hash(hasher hash.Hash64) (uint64, error)

Hash function

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) Equal

func (m *ServiceSpec) Equal(that interface{}) bool

Equal function

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 added in v1.2.13

func (m *ServiceSpec) Hash(hasher hash.Hash64) (uint64, error)

Hash function

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

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 added in v1.2.13

func (m *ServiceSpec_GrpcService) Hash(hasher hash.Hash64) (uint64, error)

Hash function

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL