Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterMergelogServiceServer(s grpc.ServiceRegistrar, srv MergelogServiceServer)
- type CPID
- type CauseType
- type Mergelog
- func (*Mergelog) Descriptor() ([]byte, []int)deprecated
- 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 UnimplementedMergelogServiceServer
- func (UnimplementedMergelogServiceServer) GetAllMergelogs(context.Context, *emptypb.Empty) (*Mergelogs, error)
- func (UnimplementedMergelogServiceServer) GetRelevantMergelogs(context.Context, *CPID) (*Mergelogs, error)
- func (UnimplementedMergelogServiceServer) Post(context.Context, *MergelogRequest) (*emptypb.Empty, error)
- type UnsafeMergelogServiceServer
Constants ¶
const ( MergelogService_Post_FullMethodName = "/k8scpdt.mergelog.v1.MergelogService/Post" MergelogService_GetAllMergelogs_FullMethodName = "/k8scpdt.mergelog.v1.MergelogService/GetAllMergelogs" MergelogService_GetRelevantMergelogs_FullMethodName = "/k8scpdt.mergelog.v1.MergelogService/GetRelevantMergelogs" )
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_api_merge_log_proto protoreflect.FileDescriptor
var MergelogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "k8scpdt.mergelog.v1.MergelogService", HandlerType: (*MergelogServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Post", Handler: _MergelogService_Post_Handler, }, { MethodName: "GetAllMergelogs", Handler: _MergelogService_GetAllMergelogs_Handler, }, { MethodName: "GetRelevantMergelogs", Handler: _MergelogService_GetRelevantMergelogs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/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 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"` // 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 { Post(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) }
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 { Post(context.Context, *MergelogRequest) (*emptypb.Empty, error) GetAllMergelogs(context.Context, *emptypb.Empty) (*Mergelogs, error) GetRelevantMergelogs(context.Context, *CPID) (*Mergelogs, 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 UnimplementedMergelogServiceServer ¶
type UnimplementedMergelogServiceServer struct { }
UnimplementedMergelogServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMergelogServiceServer) GetAllMergelogs ¶
func (UnimplementedMergelogServiceServer) GetRelevantMergelogs ¶
func (UnimplementedMergelogServiceServer) Post ¶
func (UnimplementedMergelogServiceServer) Post(context.Context, *MergelogRequest) (*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.