grpc

package
v0.6.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

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

Deprecated: Use Mergelog.ProtoReflect.Descriptor instead.

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 {
	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.

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) 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 UnimplementedMergelogServiceServer

type UnimplementedMergelogServiceServer struct {
}

UnimplementedMergelogServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMergelogServiceServer) GetAllMergelogs

func (UnimplementedMergelogServiceServer) GetRelevantMergelogs

func (UnimplementedMergelogServiceServer) Post

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.

Jump to

Keyboard shortcuts

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