Documentation ¶
Overview ¶
Package entitycachev1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Code generated by protoc-gen-deepcopy. DO NOT EDIT.
Index ¶
- Variables
- func RegisterEntityCacheServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterEntityCacheServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EntityCacheServiceClient) error
- func RegisterEntityCacheServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterEntityCacheServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EntityCacheServiceServer) error
- func RegisterEntityCacheServiceServer(s grpc.ServiceRegistrar, srv EntityCacheServiceServer)
- type EntityCacheServiceClient
- type EntityCacheServiceServer
- type OverlappingService
- func (in *OverlappingService) DeepCopy() *OverlappingService
- func (in *OverlappingService) DeepCopyInterface() interface{}
- func (in *OverlappingService) DeepCopyInto(out *OverlappingService)
- func (*OverlappingService) Descriptor() ([]byte, []int)deprecated
- func (x *OverlappingService) GetEntitiesCount() int32
- func (x *OverlappingService) GetService1() string
- func (x *OverlappingService) GetService2() string
- func (msg *OverlappingService) MarshalJSON() ([]byte, error)
- func (*OverlappingService) ProtoMessage()
- func (x *OverlappingService) ProtoReflect() protoreflect.Message
- func (x *OverlappingService) Reset()
- func (x *OverlappingService) String() string
- func (msg *OverlappingService) UnmarshalJSON(b []byte) error
- type Service
- func (in *Service) DeepCopy() *Service
- func (in *Service) DeepCopyInterface() interface{}
- func (in *Service) DeepCopyInto(out *Service)
- func (*Service) Descriptor() ([]byte, []int)deprecated
- func (x *Service) GetEntitiesCount() int32
- func (x *Service) GetName() string
- func (msg *Service) MarshalJSON() ([]byte, error)
- func (*Service) ProtoMessage()
- func (x *Service) ProtoReflect() protoreflect.Message
- func (x *Service) Reset()
- func (x *Service) String() string
- func (msg *Service) UnmarshalJSON(b []byte) error
- type ServicesList
- func (in *ServicesList) DeepCopy() *ServicesList
- func (in *ServicesList) DeepCopyInterface() interface{}
- func (in *ServicesList) DeepCopyInto(out *ServicesList)
- func (*ServicesList) Descriptor() ([]byte, []int)deprecated
- func (x *ServicesList) GetOverlappingServices() []*OverlappingService
- func (x *ServicesList) GetServices() []*Service
- func (msg *ServicesList) MarshalJSON() ([]byte, error)
- func (*ServicesList) ProtoMessage()
- func (x *ServicesList) ProtoReflect() protoreflect.Message
- func (x *ServicesList) Reset()
- func (x *ServicesList) String() string
- func (msg *ServicesList) UnmarshalJSON(b []byte) error
- type UnimplementedEntityCacheServiceServer
- type UnsafeEntityCacheServiceServer
Constants ¶
This section is empty.
Variables ¶
var EntityCacheService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "aperture.common.entitycache.v1.EntityCacheService", HandlerType: (*EntityCacheServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetServicesList", Handler: _EntityCacheService_GetServicesList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "aperture/common/entitycache/v1/entitycache.proto", }
EntityCacheService_ServiceDesc is the grpc.ServiceDesc for EntityCacheService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_aperture_common_entitycache_v1_entitycache_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEntityCacheServiceHandler ¶ added in v0.1.2
func RegisterEntityCacheServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterEntityCacheServiceHandler registers the http handlers for service EntityCacheService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterEntityCacheServiceHandlerClient ¶ added in v0.1.2
func RegisterEntityCacheServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EntityCacheServiceClient) error
RegisterEntityCacheServiceHandlerClient registers the http handlers for service EntityCacheService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EntityCacheServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EntityCacheServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EntityCacheServiceClient" to call the correct interceptors.
func RegisterEntityCacheServiceHandlerFromEndpoint ¶ added in v0.1.2
func RegisterEntityCacheServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterEntityCacheServiceHandlerFromEndpoint is same as RegisterEntityCacheServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterEntityCacheServiceHandlerServer ¶ added in v0.1.2
func RegisterEntityCacheServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EntityCacheServiceServer) error
RegisterEntityCacheServiceHandlerServer registers the http handlers for service EntityCacheService to "mux". UnaryRPC :call EntityCacheServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterEntityCacheServiceHandlerFromEndpoint instead.
func RegisterEntityCacheServiceServer ¶ added in v0.1.2
func RegisterEntityCacheServiceServer(s grpc.ServiceRegistrar, srv EntityCacheServiceServer)
Types ¶
type EntityCacheServiceClient ¶ added in v0.1.2
type EntityCacheServiceClient interface {
GetServicesList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ServicesList, error)
}
EntityCacheServiceClient is the client API for EntityCacheService 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 NewEntityCacheServiceClient ¶ added in v0.1.2
func NewEntityCacheServiceClient(cc grpc.ClientConnInterface) EntityCacheServiceClient
type EntityCacheServiceServer ¶ added in v0.1.2
type EntityCacheServiceServer interface {
GetServicesList(context.Context, *emptypb.Empty) (*ServicesList, error)
}
EntityCacheServiceServer is the server API for EntityCacheService service. All implementations should embed UnimplementedEntityCacheServiceServer for forward compatibility
type OverlappingService ¶
type OverlappingService struct { Service1 string `protobuf:"bytes,1,opt,name=service1,proto3" json:"service1,omitempty"` Service2 string `protobuf:"bytes,2,opt,name=service2,proto3" json:"service2,omitempty"` EntitiesCount int32 `protobuf:"varint,3,opt,name=entities_count,json=entitiesCount,proto3" json:"entities_count,omitempty"` // contains filtered or unexported fields }
OverlappingService contains info about a service that overlaps with another one
func (*OverlappingService) DeepCopy ¶ added in v0.1.2
func (in *OverlappingService) DeepCopy() *OverlappingService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OverlappingService. Required by controller-gen.
func (*OverlappingService) DeepCopyInterface ¶ added in v0.1.2
func (in *OverlappingService) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new OverlappingService. Required by controller-gen.
func (*OverlappingService) DeepCopyInto ¶ added in v0.1.2
func (in *OverlappingService) DeepCopyInto(out *OverlappingService)
DeepCopyInto supports using OverlappingService within kubernetes types, where deepcopy-gen is used.
func (*OverlappingService) Descriptor
deprecated
func (*OverlappingService) Descriptor() ([]byte, []int)
Deprecated: Use OverlappingService.ProtoReflect.Descriptor instead.
func (*OverlappingService) GetEntitiesCount ¶
func (x *OverlappingService) GetEntitiesCount() int32
func (*OverlappingService) GetService1 ¶
func (x *OverlappingService) GetService1() string
func (*OverlappingService) GetService2 ¶
func (x *OverlappingService) GetService2() string
func (*OverlappingService) MarshalJSON ¶
func (msg *OverlappingService) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*OverlappingService) ProtoMessage ¶
func (*OverlappingService) ProtoMessage()
func (*OverlappingService) ProtoReflect ¶
func (x *OverlappingService) ProtoReflect() protoreflect.Message
func (*OverlappingService) Reset ¶
func (x *OverlappingService) Reset()
func (*OverlappingService) String ¶
func (x *OverlappingService) String() string
func (*OverlappingService) UnmarshalJSON ¶
func (msg *OverlappingService) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type Service ¶
type Service struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` EntitiesCount int32 `protobuf:"varint,2,opt,name=entities_count,json=entitiesCount,proto3" json:"entities_count,omitempty"` // contains filtered or unexported fields }
Service contains information about single service discovered in agent group by a particular agent
func (*Service) DeepCopy ¶ added in v0.1.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service. Required by controller-gen.
func (*Service) DeepCopyInterface ¶ added in v0.1.2
func (in *Service) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new Service. Required by controller-gen.
func (*Service) DeepCopyInto ¶ added in v0.1.2
DeepCopyInto supports using Service within kubernetes types, where deepcopy-gen is used.
func (*Service) Descriptor
deprecated
func (*Service) GetEntitiesCount ¶
func (*Service) MarshalJSON ¶
MarshalJSON implements json.Marshaler
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) ProtoReflect ¶
func (x *Service) ProtoReflect() protoreflect.Message
func (*Service) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type ServicesList ¶ added in v0.1.2
type ServicesList struct { Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` OverlappingServices []*OverlappingService `protobuf:"bytes,2,rep,name=overlapping_services,json=overlappingServices,proto3" json:"overlapping_services,omitempty"` // contains filtered or unexported fields }
func (*ServicesList) DeepCopy ¶ added in v0.1.2
func (in *ServicesList) DeepCopy() *ServicesList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServicesList. Required by controller-gen.
func (*ServicesList) DeepCopyInterface ¶ added in v0.1.2
func (in *ServicesList) DeepCopyInterface() interface{}
DeepCopyInterface is an autogenerated deepcopy function, copying the receiver, creating a new ServicesList. Required by controller-gen.
func (*ServicesList) DeepCopyInto ¶ added in v0.1.2
func (in *ServicesList) DeepCopyInto(out *ServicesList)
DeepCopyInto supports using ServicesList within kubernetes types, where deepcopy-gen is used.
func (*ServicesList) Descriptor
deprecated
added in
v0.1.2
func (*ServicesList) Descriptor() ([]byte, []int)
Deprecated: Use ServicesList.ProtoReflect.Descriptor instead.
func (*ServicesList) GetOverlappingServices ¶ added in v0.1.2
func (x *ServicesList) GetOverlappingServices() []*OverlappingService
func (*ServicesList) GetServices ¶ added in v0.1.2
func (x *ServicesList) GetServices() []*Service
func (*ServicesList) MarshalJSON ¶ added in v0.1.2
func (msg *ServicesList) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler
func (*ServicesList) ProtoMessage ¶ added in v0.1.2
func (*ServicesList) ProtoMessage()
func (*ServicesList) ProtoReflect ¶ added in v0.1.2
func (x *ServicesList) ProtoReflect() protoreflect.Message
func (*ServicesList) Reset ¶ added in v0.1.2
func (x *ServicesList) Reset()
func (*ServicesList) String ¶ added in v0.1.2
func (x *ServicesList) String() string
func (*ServicesList) UnmarshalJSON ¶ added in v0.1.2
func (msg *ServicesList) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler
type UnimplementedEntityCacheServiceServer ¶ added in v0.1.2
type UnimplementedEntityCacheServiceServer struct { }
UnimplementedEntityCacheServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedEntityCacheServiceServer) GetServicesList ¶ added in v0.1.2
func (UnimplementedEntityCacheServiceServer) GetServicesList(context.Context, *emptypb.Empty) (*ServicesList, error)
type UnsafeEntityCacheServiceServer ¶ added in v0.1.2
type UnsafeEntityCacheServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEntityCacheServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EntityCacheServiceServer will result in compilation errors.