grpc

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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.

View Source
var File_merge_log_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use CPID.ProtoReflect.Descriptor instead.

func (*CPID) GetCpid

func (x *CPID) GetCpid() string

func (*CPID) ProtoMessage

func (*CPID) ProtoMessage()

func (*CPID) ProtoReflect

func (x *CPID) ProtoReflect() protoreflect.Message

func (*CPID) Reset

func (x *CPID) Reset()

func (*CPID) String

func (x *CPID) String() string

type CauseType

type CauseType int32
const (
	CauseType_CAUSE_TYPE_UNSPECIFIED CauseType = 0
	CauseType_CAUSE_TYPE_NEW_CHANGE  CauseType = 1
	CauseType_CAUSE_TYPE_MERGE       CauseType = 2
)

func (CauseType) Descriptor

func (CauseType) Descriptor() protoreflect.EnumDescriptor

func (CauseType) Enum

func (x CauseType) Enum() *CauseType

func (CauseType) EnumDescriptor deprecated

func (CauseType) EnumDescriptor() ([]byte, []int)

Deprecated: Use CauseType.Descriptor instead.

func (CauseType) Number

func (x CauseType) Number() protoreflect.EnumNumber

func (CauseType) String

func (x CauseType) String() string

func (CauseType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use Mergelog.ProtoReflect.Descriptor instead.

func (*Mergelog) GetBy

func (x *Mergelog) GetBy() string

func (*Mergelog) GetCauseMessage

func (x *Mergelog) GetCauseMessage() string

func (*Mergelog) GetCauseType

func (x *Mergelog) GetCauseType() CauseType

func (*Mergelog) GetNewCpid

func (x *Mergelog) GetNewCpid() *CPID

func (*Mergelog) GetSourceCpids

func (x *Mergelog) GetSourceCpids() []*CPID

func (*Mergelog) GetTime

func (x *Mergelog) GetTime() *timestamppb.Timestamp

func (*Mergelog) ProtoMessage

func (*Mergelog) ProtoMessage()

func (*Mergelog) ProtoReflect

func (x *Mergelog) ProtoReflect() protoreflect.Message

func (*Mergelog) Reset

func (x *Mergelog) Reset()

func (*Mergelog) String

func (x *Mergelog) String() string

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Mergelogs.ProtoReflect.Descriptor instead.

func (*Mergelogs) GetMergelogs

func (x *Mergelogs) GetMergelogs() []*Mergelog

func (*Mergelogs) ProtoMessage

func (*Mergelogs) ProtoMessage()

func (*Mergelogs) ProtoReflect

func (x *Mergelogs) ProtoReflect() protoreflect.Message

func (*Mergelogs) Reset

func (x *Mergelogs) Reset()

func (*Mergelogs) String

func (x *Mergelogs) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Span.ProtoReflect.Descriptor instead.

func (*Span) GetCpid

func (x *Span) GetCpid() *CPID

func (*Span) GetEndTime

func (x *Span) GetEndTime() *timestamppb.Timestamp

func (*Span) GetMessage

func (x *Span) GetMessage() string

func (*Span) GetObjectKind

func (x *Span) GetObjectKind() string

func (*Span) GetObjectName

func (x *Span) GetObjectName() string

func (*Span) GetParentId

func (x *Span) GetParentId() string

func (*Span) GetService

func (x *Span) GetService() string

func (*Span) GetSpanId

func (x *Span) GetSpanId() string

func (*Span) GetStartTime

func (x *Span) GetStartTime() *timestamppb.Timestamp

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) ProtoReflect

func (x *Span) ProtoReflect() protoreflect.Message

func (*Span) Reset

func (x *Span) Reset()

func (*Span) String

func (x *Span) String() string

type UnimplementedMergelogServiceServer

type UnimplementedMergelogServiceServer struct {
}

UnimplementedMergelogServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMergelogServiceServer) GetAllMergelogs

func (UnimplementedMergelogServiceServer) GetAllSpans

func (UnimplementedMergelogServiceServer) GetRelevantMergelogs

func (UnimplementedMergelogServiceServer) GetRelevantSpans

func (UnimplementedMergelogServiceServer) PostMergelogs

func (UnimplementedMergelogServiceServer) PostSpans

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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