Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterP9XServiceServer(s grpc.ServiceRegistrar, srv P9XServiceServer)
- func RegisterTraceIdServiceServer(s grpc.ServiceRegistrar, srv TraceIdServiceServer)
- type P9XData
- func (*P9XData) Descriptor() ([]byte, []int)deprecated
- func (x *P9XData) GetContainerId() string
- func (x *P9XData) GetUrl() string
- func (x *P9XData) GetValue() float64
- func (*P9XData) ProtoMessage()
- func (x *P9XData) ProtoReflect() protoreflect.Message
- func (x *P9XData) Reset()
- func (x *P9XData) String() string
- type P9XRequest
- type P9XResponse
- type P9XServiceClient
- type P9XServiceServer
- type TraceIdServiceClient
- type TraceIdServiceServer
- type TraceIds
- type UnimplementedP9XServiceServer
- type UnimplementedTraceIdServiceServer
- type UnsafeP9XServiceServer
- type UnsafeTraceIdServiceServer
Constants ¶
const (
P9XService_QueryP9X_FullMethodName = "/kindling.P9XService/QueryP9x"
)
const (
TraceIdService_SendTraceIds_FullMethodName = "/kindling.TraceIdService/SendTraceIds"
)
Variables ¶
var File_kindling_traceid_proto protoreflect.FileDescriptor
var File_pkg_model_kindling_p9x_proto protoreflect.FileDescriptor
var P9XService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kindling.P9XService", HandlerType: (*P9XServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "QueryP9x", Handler: _P9XService_QueryP9X_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/model/kindling_p9x.proto", }
P9XService_ServiceDesc is the grpc.ServiceDesc for P9XService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TraceIdService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "kindling.TraceIdService", HandlerType: (*TraceIdServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendTraceIds", Handler: _TraceIdService_SendTraceIds_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "kindling_traceid.proto", }
TraceIdService_ServiceDesc is the grpc.ServiceDesc for TraceIdService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterP9XServiceServer ¶
func RegisterP9XServiceServer(s grpc.ServiceRegistrar, srv P9XServiceServer)
func RegisterTraceIdServiceServer ¶
func RegisterTraceIdServiceServer(s grpc.ServiceRegistrar, srv TraceIdServiceServer)
Types ¶
type P9XData ¶
type P9XData struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` ContainerId string `protobuf:"bytes,2,opt,name=containerId,proto3" json:"containerId,omitempty"` Value float64 `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*P9XData) Descriptor
deprecated
func (*P9XData) GetContainerId ¶
func (*P9XData) ProtoMessage ¶
func (*P9XData) ProtoMessage()
func (*P9XData) ProtoReflect ¶
func (x *P9XData) ProtoReflect() protoreflect.Message
type P9XRequest ¶
type P9XRequest struct { Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` // contains filtered or unexported fields }
func (*P9XRequest) Descriptor
deprecated
func (*P9XRequest) Descriptor() ([]byte, []int)
Deprecated: Use P9XRequest.ProtoReflect.Descriptor instead.
func (*P9XRequest) GetIp ¶
func (x *P9XRequest) GetIp() string
func (*P9XRequest) ProtoMessage ¶
func (*P9XRequest) ProtoMessage()
func (*P9XRequest) ProtoReflect ¶
func (x *P9XRequest) ProtoReflect() protoreflect.Message
func (*P9XRequest) Reset ¶
func (x *P9XRequest) Reset()
func (*P9XRequest) String ¶
func (x *P9XRequest) String() string
type P9XResponse ¶
type P9XResponse struct { Datas []*P9XData `protobuf:"bytes,1,rep,name=datas,proto3" json:"datas,omitempty"` // contains filtered or unexported fields }
func (*P9XResponse) Descriptor
deprecated
func (*P9XResponse) Descriptor() ([]byte, []int)
Deprecated: Use P9XResponse.ProtoReflect.Descriptor instead.
func (*P9XResponse) GetDatas ¶
func (x *P9XResponse) GetDatas() []*P9XData
func (*P9XResponse) ProtoMessage ¶
func (*P9XResponse) ProtoMessage()
func (*P9XResponse) ProtoReflect ¶
func (x *P9XResponse) ProtoReflect() protoreflect.Message
func (*P9XResponse) Reset ¶
func (x *P9XResponse) Reset()
func (*P9XResponse) String ¶
func (x *P9XResponse) String() string
type P9XServiceClient ¶
type P9XServiceClient interface {
QueryP9X(ctx context.Context, in *P9XRequest, opts ...grpc.CallOption) (*P9XResponse, error)
}
P9XServiceClient is the client API for P9XService 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 NewP9XServiceClient ¶
func NewP9XServiceClient(cc grpc.ClientConnInterface) P9XServiceClient
type P9XServiceServer ¶
type P9XServiceServer interface { QueryP9X(context.Context, *P9XRequest) (*P9XResponse, error) // contains filtered or unexported methods }
P9XServiceServer is the server API for P9XService service. All implementations must embed UnimplementedP9XServiceServer for forward compatibility
type TraceIdServiceClient ¶
type TraceIdServiceClient interface {
SendTraceIds(ctx context.Context, in *TraceIds, opts ...grpc.CallOption) (*TraceIds, error)
}
TraceIdServiceClient is the client API for TraceIdService 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 NewTraceIdServiceClient ¶
func NewTraceIdServiceClient(cc grpc.ClientConnInterface) TraceIdServiceClient
type TraceIdServiceServer ¶
type TraceIdServiceServer interface { SendTraceIds(context.Context, *TraceIds) (*TraceIds, error) // contains filtered or unexported methods }
TraceIdServiceServer is the server API for TraceIdService service. All implementations must embed UnimplementedTraceIdServiceServer for forward compatibility
type TraceIds ¶
type TraceIds struct { QueryTime int64 `protobuf:"varint,1,opt,name=queryTime,proto3" json:"queryTime,omitempty"` TraceIds []string `protobuf:"bytes,2,rep,name=traceIds,proto3" json:"traceIds,omitempty"` // contains filtered or unexported fields }
func (*TraceIds) Descriptor
deprecated
func (*TraceIds) GetQueryTime ¶
func (*TraceIds) GetTraceIds ¶
func (*TraceIds) ProtoMessage ¶
func (*TraceIds) ProtoMessage()
func (*TraceIds) ProtoReflect ¶
func (x *TraceIds) ProtoReflect() protoreflect.Message
type UnimplementedP9XServiceServer ¶
type UnimplementedP9XServiceServer struct { }
UnimplementedP9XServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedP9XServiceServer) QueryP9X ¶
func (UnimplementedP9XServiceServer) QueryP9X(context.Context, *P9XRequest) (*P9XResponse, error)
type UnimplementedTraceIdServiceServer ¶
type UnimplementedTraceIdServiceServer struct { }
UnimplementedTraceIdServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTraceIdServiceServer) SendTraceIds ¶
type UnsafeP9XServiceServer ¶
type UnsafeP9XServiceServer interface {
// contains filtered or unexported methods
}
UnsafeP9XServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to P9XServiceServer will result in compilation errors.
type UnsafeTraceIdServiceServer ¶
type UnsafeTraceIdServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTraceIdServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TraceIdServiceServer will result in compilation errors.