Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterObservatoryServiceServer(s grpc.ServiceRegistrar, srv ObservatoryServiceServer)
- type Config
- type GetOutboundStatusRequest
- type GetOutboundStatusResponse
- func (*GetOutboundStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetOutboundStatusResponse) GetStatus() *observatory.ObservationResult
- func (*GetOutboundStatusResponse) ProtoMessage()
- func (x *GetOutboundStatusResponse) ProtoReflect() protoreflect.Message
- func (x *GetOutboundStatusResponse) Reset()
- func (x *GetOutboundStatusResponse) String() string
- type ObservatoryServiceClient
- type ObservatoryServiceServer
- type UnimplementedObservatoryServiceServer
- type UnsafeObservatoryServiceServer
Constants ¶
const (
ObservatoryService_GetOutboundStatus_FullMethodName = "/xray.core.app.observatory.command.ObservatoryService/GetOutboundStatus"
)
Variables ¶
var File_app_observatory_command_command_proto protoreflect.FileDescriptor
var ObservatoryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "xray.core.app.observatory.command.ObservatoryService", HandlerType: (*ObservatoryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetOutboundStatus", Handler: _ObservatoryService_GetOutboundStatus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "app/observatory/command/command.proto", }
ObservatoryService_ServiceDesc is the grpc.ServiceDesc for ObservatoryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterObservatoryServiceServer ¶
func RegisterObservatoryServiceServer(s grpc.ServiceRegistrar, srv ObservatoryServiceServer)
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) Descriptor
deprecated
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
type GetOutboundStatusRequest ¶
type GetOutboundStatusRequest struct {
// contains filtered or unexported fields
}
func (*GetOutboundStatusRequest) Descriptor
deprecated
func (*GetOutboundStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOutboundStatusRequest.ProtoReflect.Descriptor instead.
func (*GetOutboundStatusRequest) ProtoMessage ¶
func (*GetOutboundStatusRequest) ProtoMessage()
func (*GetOutboundStatusRequest) ProtoReflect ¶
func (x *GetOutboundStatusRequest) ProtoReflect() protoreflect.Message
func (*GetOutboundStatusRequest) Reset ¶
func (x *GetOutboundStatusRequest) Reset()
func (*GetOutboundStatusRequest) String ¶
func (x *GetOutboundStatusRequest) String() string
type GetOutboundStatusResponse ¶
type GetOutboundStatusResponse struct { Status *observatory.ObservationResult `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*GetOutboundStatusResponse) Descriptor
deprecated
func (*GetOutboundStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOutboundStatusResponse.ProtoReflect.Descriptor instead.
func (*GetOutboundStatusResponse) GetStatus ¶
func (x *GetOutboundStatusResponse) GetStatus() *observatory.ObservationResult
func (*GetOutboundStatusResponse) ProtoMessage ¶
func (*GetOutboundStatusResponse) ProtoMessage()
func (*GetOutboundStatusResponse) ProtoReflect ¶
func (x *GetOutboundStatusResponse) ProtoReflect() protoreflect.Message
func (*GetOutboundStatusResponse) Reset ¶
func (x *GetOutboundStatusResponse) Reset()
func (*GetOutboundStatusResponse) String ¶
func (x *GetOutboundStatusResponse) String() string
type ObservatoryServiceClient ¶
type ObservatoryServiceClient interface {
GetOutboundStatus(ctx context.Context, in *GetOutboundStatusRequest, opts ...grpc.CallOption) (*GetOutboundStatusResponse, error)
}
ObservatoryServiceClient is the client API for ObservatoryService 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 NewObservatoryServiceClient ¶
func NewObservatoryServiceClient(cc grpc.ClientConnInterface) ObservatoryServiceClient
type ObservatoryServiceServer ¶
type ObservatoryServiceServer interface { GetOutboundStatus(context.Context, *GetOutboundStatusRequest) (*GetOutboundStatusResponse, error) // contains filtered or unexported methods }
ObservatoryServiceServer is the server API for ObservatoryService service. All implementations must embed UnimplementedObservatoryServiceServer for forward compatibility.
type UnimplementedObservatoryServiceServer ¶
type UnimplementedObservatoryServiceServer struct{}
UnimplementedObservatoryServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedObservatoryServiceServer) GetOutboundStatus ¶
func (UnimplementedObservatoryServiceServer) GetOutboundStatus(context.Context, *GetOutboundStatusRequest) (*GetOutboundStatusResponse, error)
type UnsafeObservatoryServiceServer ¶
type UnsafeObservatoryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeObservatoryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ObservatoryServiceServer will result in compilation errors.