Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMergelogServiceServer(s grpc.ServiceRegistrar, srv MergelogServiceServer)
- type CPID
- type CauseType
- type GetAllSpansResponse
- func (*GetAllSpansResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllSpansResponse) GetSpans() []*Span
- func (*GetAllSpansResponse) ProtoMessage()
- func (x *GetAllSpansResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllSpansResponse) Reset()
- func (x *GetAllSpansResponse) String() string
- type GetRelevantSpansResponse
- func (*GetRelevantSpansResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelevantSpansResponse) GetSpans() []*Span
- func (*GetRelevantSpansResponse) ProtoMessage()
- func (x *GetRelevantSpansResponse) ProtoReflect() protoreflect.Message
- func (x *GetRelevantSpansResponse) Reset()
- func (x *GetRelevantSpansResponse) String() string
- type Mergelog
- func (*Mergelog) Descriptor() ([]byte, []int)deprecated
- func (x *Mergelog) GetBy() string
- func (x *Mergelog) GetCauseMessage() string
- func (x *Mergelog) GetCauseType() CauseType
- func (x *Mergelog) GetNewCpid() *CPID
- func (x *Mergelog) GetSourceCpids() []*CPID
- func (x *Mergelog) GetTime() *timestamppb.Timestamp
- func (*Mergelog) ProtoMessage()
- func (x *Mergelog) ProtoReflect() protoreflect.Message
- func (x *Mergelog) Reset()
- func (x *Mergelog) String() string
- type MergelogRequest
- type MergelogServiceClient
- type MergelogServiceServer
- type Mergelogs
- type PostSpansRequest
- type Span
- func (*Span) Descriptor() ([]byte, []int)deprecated
- func (x *Span) GetCpid() *CPID
- func (x *Span) GetEndTime() *timestamppb.Timestamp
- func (x *Span) GetMessage() string
- func (x *Span) GetObjectKind() string
- func (x *Span) GetObjectName() string
- func (x *Span) GetParentId() string
- func (x *Span) GetService() string
- func (x *Span) GetSpanId() string
- func (x *Span) GetStartTime() *timestamppb.Timestamp
- func (*Span) ProtoMessage()
- func (x *Span) ProtoReflect() protoreflect.Message
- func (x *Span) Reset()
- func (x *Span) String() string
- type UnimplementedMergelogServiceServer
- func (UnimplementedMergelogServiceServer) GetAllMergelogs(context.Context, *emptypb.Empty) (*Mergelogs, error)
- func (UnimplementedMergelogServiceServer) GetAllSpans(context.Context, *emptypb.Empty) (*GetAllSpansResponse, error)
- func (UnimplementedMergelogServiceServer) GetRelevantMergelogs(context.Context, *CPID) (*Mergelogs, error)
- func (UnimplementedMergelogServiceServer) GetRelevantSpans(context.Context, *CPID) (*GetRelevantSpansResponse, error)
- func (UnimplementedMergelogServiceServer) PostMergelogs(context.Context, *MergelogRequest) (*emptypb.Empty, error)
- func (UnimplementedMergelogServiceServer) PostSpans(context.Context, *PostSpansRequest) (*emptypb.Empty, error)
- type UnsafeMergelogServiceServer
Constants ¶
const ( MergelogService_PostMergelogs_FullMethodName = "/k8scpdt.mergelog.v1.MergelogService/PostMergelogs" MergelogService_GetAllMergelogs_FullMethodName = "/k8scpdt.mergelog.v1.MergelogService/GetAllMergelogs" MergelogService_GetRelevantMergelogs_FullMethodName = "/k8scpdt.mergelog.v1.MergelogService/GetRelevantMergelogs" MergelogService_PostSpans_FullMethodName = "/k8scpdt.mergelog.v1.MergelogService/PostSpans" MergelogService_GetAllSpans_FullMethodName = "/k8scpdt.mergelog.v1.MergelogService/GetAllSpans" MergelogService_GetRelevantSpans_FullMethodName = "/k8scpdt.mergelog.v1.MergelogService/GetRelevantSpans" )
Variables ¶
var ( CauseType_name = map[int32]string{ 0: "CAUSE_TYPE_UNSPECIFIED", 1: "CAUSE_TYPE_NEW_CHANGE", 2: "CAUSE_TYPE_MERGE", } CauseType_value = map[string]int32{ "CAUSE_TYPE_UNSPECIFIED": 0, "CAUSE_TYPE_NEW_CHANGE": 1, "CAUSE_TYPE_MERGE": 2, } )
Enum value maps for CauseType.
var File_merge_log_proto protoreflect.FileDescriptor
var MergelogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "k8scpdt.mergelog.v1.MergelogService", HandlerType: (*MergelogServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PostMergelogs", Handler: _MergelogService_PostMergelogs_Handler, }, { MethodName: "GetAllMergelogs", Handler: _MergelogService_GetAllMergelogs_Handler, }, { MethodName: "GetRelevantMergelogs", Handler: _MergelogService_GetRelevantMergelogs_Handler, }, { MethodName: "PostSpans", Handler: _MergelogService_PostSpans_Handler, }, { MethodName: "GetAllSpans", Handler: _MergelogService_GetAllSpans_Handler, }, { MethodName: "GetRelevantSpans", Handler: _MergelogService_GetRelevantSpans_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "merge_log.proto", }
MergelogService_ServiceDesc is the grpc.ServiceDesc for MergelogService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMergelogServiceServer ¶
func RegisterMergelogServiceServer(s grpc.ServiceRegistrar, srv MergelogServiceServer)
Types ¶
type CPID ¶
type CPID struct { Cpid string `protobuf:"bytes,1,opt,name=cpid,proto3" json:"cpid,omitempty"` // contains filtered or unexported fields }
func (*CPID) Descriptor
deprecated
func (*CPID) ProtoMessage ¶
func (*CPID) ProtoMessage()
func (*CPID) ProtoReflect ¶
func (x *CPID) ProtoReflect() protoreflect.Message
type CauseType ¶
type CauseType int32
func (CauseType) Descriptor ¶
func (CauseType) Descriptor() protoreflect.EnumDescriptor
func (CauseType) EnumDescriptor
deprecated
func (CauseType) Number ¶
func (x CauseType) Number() protoreflect.EnumNumber
func (CauseType) Type ¶
func (CauseType) Type() protoreflect.EnumType
type GetAllSpansResponse ¶
type GetAllSpansResponse struct { Spans []*Span `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"` // contains filtered or unexported fields }
func (*GetAllSpansResponse) Descriptor
deprecated
func (*GetAllSpansResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllSpansResponse.ProtoReflect.Descriptor instead.
func (*GetAllSpansResponse) GetSpans ¶
func (x *GetAllSpansResponse) GetSpans() []*Span
func (*GetAllSpansResponse) ProtoMessage ¶
func (*GetAllSpansResponse) ProtoMessage()
func (*GetAllSpansResponse) ProtoReflect ¶
func (x *GetAllSpansResponse) ProtoReflect() protoreflect.Message
func (*GetAllSpansResponse) Reset ¶
func (x *GetAllSpansResponse) Reset()
func (*GetAllSpansResponse) String ¶
func (x *GetAllSpansResponse) String() string
type GetRelevantSpansResponse ¶
type GetRelevantSpansResponse struct { Spans []*Span `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"` // contains filtered or unexported fields }
func (*GetRelevantSpansResponse) Descriptor
deprecated
func (*GetRelevantSpansResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRelevantSpansResponse.ProtoReflect.Descriptor instead.
func (*GetRelevantSpansResponse) GetSpans ¶
func (x *GetRelevantSpansResponse) GetSpans() []*Span
func (*GetRelevantSpansResponse) ProtoMessage ¶
func (*GetRelevantSpansResponse) ProtoMessage()
func (*GetRelevantSpansResponse) ProtoReflect ¶
func (x *GetRelevantSpansResponse) ProtoReflect() protoreflect.Message
func (*GetRelevantSpansResponse) Reset ¶
func (x *GetRelevantSpansResponse) Reset()
func (*GetRelevantSpansResponse) String ¶
func (x *GetRelevantSpansResponse) String() string
type Mergelog ¶
type Mergelog struct { NewCpid *CPID `protobuf:"bytes,1,opt,name=new_cpid,json=newCpid,proto3" json:"new_cpid,omitempty"` SourceCpids []*CPID `protobuf:"bytes,2,rep,name=source_cpids,json=sourceCpids,proto3" json:"source_cpids,omitempty"` Time *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` CauseType CauseType `protobuf:"varint,4,opt,name=cause_type,json=causeType,proto3,enum=k8scpdt.mergelog.v1.CauseType" json:"cause_type,omitempty"` CauseMessage string `protobuf:"bytes,5,opt,name=cause_message,json=causeMessage,proto3" json:"cause_message,omitempty"` By string `protobuf:"bytes,6,opt,name=by,proto3" json:"by,omitempty"` // contains filtered or unexported fields }
func (*Mergelog) Descriptor
deprecated
func (*Mergelog) GetCauseMessage ¶
func (*Mergelog) GetCauseType ¶
func (*Mergelog) GetNewCpid ¶
func (*Mergelog) GetSourceCpids ¶
func (*Mergelog) GetTime ¶
func (x *Mergelog) GetTime() *timestamppb.Timestamp
func (*Mergelog) ProtoMessage ¶
func (*Mergelog) ProtoMessage()
func (*Mergelog) ProtoReflect ¶
func (x *Mergelog) ProtoReflect() protoreflect.Message
type MergelogRequest ¶
type MergelogRequest struct { Mergelogs []*Mergelog `protobuf:"bytes,1,rep,name=mergelogs,proto3" json:"mergelogs,omitempty"` // contains filtered or unexported fields }
func (*MergelogRequest) Descriptor
deprecated
func (*MergelogRequest) Descriptor() ([]byte, []int)
Deprecated: Use MergelogRequest.ProtoReflect.Descriptor instead.
func (*MergelogRequest) GetMergelogs ¶
func (x *MergelogRequest) GetMergelogs() []*Mergelog
func (*MergelogRequest) ProtoMessage ¶
func (*MergelogRequest) ProtoMessage()
func (*MergelogRequest) ProtoReflect ¶
func (x *MergelogRequest) ProtoReflect() protoreflect.Message
func (*MergelogRequest) Reset ¶
func (x *MergelogRequest) Reset()
func (*MergelogRequest) String ¶
func (x *MergelogRequest) String() string
type MergelogServiceClient ¶
type MergelogServiceClient interface { PostMergelogs(ctx context.Context, in *MergelogRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetAllMergelogs(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Mergelogs, error) GetRelevantMergelogs(ctx context.Context, in *CPID, opts ...grpc.CallOption) (*Mergelogs, error) PostSpans(ctx context.Context, in *PostSpansRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) GetAllSpans(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetAllSpansResponse, error) GetRelevantSpans(ctx context.Context, in *CPID, opts ...grpc.CallOption) (*GetRelevantSpansResponse, error) }
MergelogServiceClient is the client API for MergelogService 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 NewMergelogServiceClient ¶
func NewMergelogServiceClient(cc grpc.ClientConnInterface) MergelogServiceClient
type MergelogServiceServer ¶
type MergelogServiceServer interface { PostMergelogs(context.Context, *MergelogRequest) (*emptypb.Empty, error) GetAllMergelogs(context.Context, *emptypb.Empty) (*Mergelogs, error) GetRelevantMergelogs(context.Context, *CPID) (*Mergelogs, error) PostSpans(context.Context, *PostSpansRequest) (*emptypb.Empty, error) GetAllSpans(context.Context, *emptypb.Empty) (*GetAllSpansResponse, error) GetRelevantSpans(context.Context, *CPID) (*GetRelevantSpansResponse, error) // contains filtered or unexported methods }
MergelogServiceServer is the server API for MergelogService service. All implementations must embed UnimplementedMergelogServiceServer for forward compatibility
type Mergelogs ¶
type Mergelogs struct { Mergelogs []*Mergelog `protobuf:"bytes,1,rep,name=mergelogs,proto3" json:"mergelogs,omitempty"` // contains filtered or unexported fields }
func (*Mergelogs) Descriptor
deprecated
func (*Mergelogs) GetMergelogs ¶
func (*Mergelogs) ProtoMessage ¶
func (*Mergelogs) ProtoMessage()
func (*Mergelogs) ProtoReflect ¶
func (x *Mergelogs) ProtoReflect() protoreflect.Message
type PostSpansRequest ¶
type PostSpansRequest struct { Spans []*Span `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"` // contains filtered or unexported fields }
func (*PostSpansRequest) Descriptor
deprecated
func (*PostSpansRequest) Descriptor() ([]byte, []int)
Deprecated: Use PostSpansRequest.ProtoReflect.Descriptor instead.
func (*PostSpansRequest) GetSpans ¶
func (x *PostSpansRequest) GetSpans() []*Span
func (*PostSpansRequest) ProtoMessage ¶
func (*PostSpansRequest) ProtoMessage()
func (*PostSpansRequest) ProtoReflect ¶
func (x *PostSpansRequest) ProtoReflect() protoreflect.Message
func (*PostSpansRequest) Reset ¶
func (x *PostSpansRequest) Reset()
func (*PostSpansRequest) String ¶
func (x *PostSpansRequest) String() string
type Span ¶
type Span struct { Cpid *CPID `protobuf:"bytes,1,opt,name=cpid,proto3" json:"cpid,omitempty"` StartTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` ObjectKind string `protobuf:"bytes,5,opt,name=object_kind,json=objectKind,proto3" json:"object_kind,omitempty"` ObjectName string `protobuf:"bytes,6,opt,name=object_name,json=objectName,proto3" json:"object_name,omitempty"` Message string `protobuf:"bytes,7,opt,name=message,proto3" json:"message,omitempty"` SpanId string `protobuf:"bytes,8,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"` ParentId string `protobuf:"bytes,9,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // contains filtered or unexported fields }
func (*Span) Descriptor
deprecated
func (*Span) GetEndTime ¶
func (x *Span) GetEndTime() *timestamppb.Timestamp
func (*Span) GetMessage ¶
func (*Span) GetObjectKind ¶
func (*Span) GetObjectName ¶
func (*Span) GetParentId ¶
func (*Span) GetService ¶
func (*Span) GetStartTime ¶
func (x *Span) GetStartTime() *timestamppb.Timestamp
func (*Span) ProtoMessage ¶
func (*Span) ProtoMessage()
func (*Span) ProtoReflect ¶
func (x *Span) ProtoReflect() protoreflect.Message
type UnimplementedMergelogServiceServer ¶
type UnimplementedMergelogServiceServer struct { }
UnimplementedMergelogServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMergelogServiceServer) GetAllMergelogs ¶
func (UnimplementedMergelogServiceServer) GetAllSpans ¶
func (UnimplementedMergelogServiceServer) GetAllSpans(context.Context, *emptypb.Empty) (*GetAllSpansResponse, error)
func (UnimplementedMergelogServiceServer) GetRelevantMergelogs ¶
func (UnimplementedMergelogServiceServer) GetRelevantSpans ¶
func (UnimplementedMergelogServiceServer) GetRelevantSpans(context.Context, *CPID) (*GetRelevantSpansResponse, error)
func (UnimplementedMergelogServiceServer) PostMergelogs ¶
func (UnimplementedMergelogServiceServer) PostMergelogs(context.Context, *MergelogRequest) (*emptypb.Empty, error)
func (UnimplementedMergelogServiceServer) PostSpans ¶
func (UnimplementedMergelogServiceServer) PostSpans(context.Context, *PostSpansRequest) (*emptypb.Empty, error)
type UnsafeMergelogServiceServer ¶
type UnsafeMergelogServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMergelogServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MergelogServiceServer will result in compilation errors.