Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterScmServiceServer(s grpc.ServiceRegistrar, srv ScmServiceServer)
- type CICheck
- func (*CICheck) Descriptor() ([]byte, []int)deprecated
- func (x *CICheck) GetCheckRunId() int64
- func (x *CICheck) GetConclusion() string
- func (x *CICheck) GetName() string
- func (x *CICheck) GetStatus() string
- func (*CICheck) ProtoMessage()
- func (x *CICheck) ProtoReflect() protoreflect.Message
- func (x *CICheck) Reset()
- func (x *CICheck) String() string
- type GetPRDetailsRequest
- func (*GetPRDetailsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPRDetailsRequest) GetPrUrl() string
- func (*GetPRDetailsRequest) ProtoMessage()
- func (x *GetPRDetailsRequest) ProtoReflect() protoreflect.Message
- func (x *GetPRDetailsRequest) Reset()
- func (x *GetPRDetailsRequest) String() string
- type GetPRDetailsResponse
- func (*GetPRDetailsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPRDetailsResponse) GetDetails() *PRDetails
- func (*GetPRDetailsResponse) ProtoMessage()
- func (x *GetPRDetailsResponse) ProtoReflect() protoreflect.Message
- func (x *GetPRDetailsResponse) Reset()
- func (x *GetPRDetailsResponse) String() string
- type PRComment
- func (*PRComment) Descriptor() ([]byte, []int)deprecated
- func (x *PRComment) GetAuthor() string
- func (x *PRComment) GetBody() string
- func (x *PRComment) GetCreatedAtUnix() int64
- func (x *PRComment) GetId() string
- func (x *PRComment) GetType() string
- func (*PRComment) ProtoMessage()
- func (x *PRComment) ProtoReflect() protoreflect.Message
- func (x *PRComment) Reset()
- func (x *PRComment) String() string
- type PRDetails
- func (*PRDetails) Descriptor() ([]byte, []int)deprecated
- func (x *PRDetails) GetBody() string
- func (x *PRDetails) GetCiChecks() []*CICheck
- func (x *PRDetails) GetComments() []*PRComment
- func (x *PRDetails) GetHeadRef() string
- func (x *PRDetails) GetState() string
- func (x *PRDetails) GetTitle() string
- func (*PRDetails) ProtoMessage()
- func (x *PRDetails) ProtoReflect() protoreflect.Message
- func (x *PRDetails) Reset()
- func (x *PRDetails) String() string
- type ScmServiceClient
- type ScmServiceServer
- type UnimplementedScmServiceServer
- type UnsafeScmServiceServer
Constants ¶
const (
ScmService_GetPRDetails_FullMethodName = "/babysit.ScmService/GetPRDetails"
)
Variables ¶
var File_internal_proto_scm_scm_proto protoreflect.FileDescriptor
var ScmService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "babysit.ScmService", HandlerType: (*ScmServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetPRDetails", Handler: _ScmService_GetPRDetails_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/proto/scm/scm.proto", }
ScmService_ServiceDesc is the grpc.ServiceDesc for ScmService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterScmServiceServer ¶
func RegisterScmServiceServer(s grpc.ServiceRegistrar, srv ScmServiceServer)
Types ¶
type CICheck ¶
type CICheck struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
Conclusion string `protobuf:"bytes,3,opt,name=conclusion,proto3" json:"conclusion,omitempty"`
CheckRunId int64 `protobuf:"varint,4,opt,name=check_run_id,json=checkRunId,proto3" json:"check_run_id,omitempty"`
// contains filtered or unexported fields
}
func (*CICheck) Descriptor
deprecated
func (*CICheck) GetCheckRunId ¶
func (*CICheck) GetConclusion ¶
func (*CICheck) ProtoMessage ¶
func (*CICheck) ProtoMessage()
func (*CICheck) ProtoReflect ¶
func (x *CICheck) ProtoReflect() protoreflect.Message
type GetPRDetailsRequest ¶
type GetPRDetailsRequest struct {
PrUrl string `protobuf:"bytes,1,opt,name=pr_url,json=prUrl,proto3" json:"pr_url,omitempty"`
// contains filtered or unexported fields
}
func (*GetPRDetailsRequest) Descriptor
deprecated
func (*GetPRDetailsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPRDetailsRequest.ProtoReflect.Descriptor instead.
func (*GetPRDetailsRequest) GetPrUrl ¶
func (x *GetPRDetailsRequest) GetPrUrl() string
func (*GetPRDetailsRequest) ProtoMessage ¶
func (*GetPRDetailsRequest) ProtoMessage()
func (*GetPRDetailsRequest) ProtoReflect ¶
func (x *GetPRDetailsRequest) ProtoReflect() protoreflect.Message
func (*GetPRDetailsRequest) Reset ¶
func (x *GetPRDetailsRequest) Reset()
func (*GetPRDetailsRequest) String ¶
func (x *GetPRDetailsRequest) String() string
type GetPRDetailsResponse ¶
type GetPRDetailsResponse struct {
Details *PRDetails `protobuf:"bytes,1,opt,name=details,proto3" json:"details,omitempty"`
// contains filtered or unexported fields
}
func (*GetPRDetailsResponse) Descriptor
deprecated
func (*GetPRDetailsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPRDetailsResponse.ProtoReflect.Descriptor instead.
func (*GetPRDetailsResponse) GetDetails ¶
func (x *GetPRDetailsResponse) GetDetails() *PRDetails
func (*GetPRDetailsResponse) ProtoMessage ¶
func (*GetPRDetailsResponse) ProtoMessage()
func (*GetPRDetailsResponse) ProtoReflect ¶
func (x *GetPRDetailsResponse) ProtoReflect() protoreflect.Message
func (*GetPRDetailsResponse) Reset ¶
func (x *GetPRDetailsResponse) Reset()
func (*GetPRDetailsResponse) String ¶
func (x *GetPRDetailsResponse) String() string
type PRComment ¶
type PRComment struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
Author string `protobuf:"bytes,3,opt,name=author,proto3" json:"author,omitempty"`
Body string `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
CreatedAtUnix int64 `protobuf:"varint,5,opt,name=created_at_unix,json=createdAtUnix,proto3" json:"created_at_unix,omitempty"`
// contains filtered or unexported fields
}
func (*PRComment) Descriptor
deprecated
func (*PRComment) GetCreatedAtUnix ¶
func (*PRComment) ProtoMessage ¶
func (*PRComment) ProtoMessage()
func (*PRComment) ProtoReflect ¶
func (x *PRComment) ProtoReflect() protoreflect.Message
type PRDetails ¶
type PRDetails struct {
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
HeadRef string `protobuf:"bytes,3,opt,name=head_ref,json=headRef,proto3" json:"head_ref,omitempty"`
State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state,omitempty"`
Comments []*PRComment `protobuf:"bytes,5,rep,name=comments,proto3" json:"comments,omitempty"`
CiChecks []*CICheck `protobuf:"bytes,6,rep,name=ci_checks,json=ciChecks,proto3" json:"ci_checks,omitempty"`
// contains filtered or unexported fields
}
func (*PRDetails) Descriptor
deprecated
func (*PRDetails) GetCiChecks ¶
func (*PRDetails) GetComments ¶
func (*PRDetails) GetHeadRef ¶
func (*PRDetails) ProtoMessage ¶
func (*PRDetails) ProtoMessage()
func (*PRDetails) ProtoReflect ¶
func (x *PRDetails) ProtoReflect() protoreflect.Message
type ScmServiceClient ¶
type ScmServiceClient interface {
GetPRDetails(ctx context.Context, in *GetPRDetailsRequest, opts ...grpc.CallOption) (*GetPRDetailsResponse, error)
}
ScmServiceClient is the client API for ScmService 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 NewScmServiceClient ¶
func NewScmServiceClient(cc grpc.ClientConnInterface) ScmServiceClient
type ScmServiceServer ¶
type ScmServiceServer interface {
GetPRDetails(context.Context, *GetPRDetailsRequest) (*GetPRDetailsResponse, error)
// contains filtered or unexported methods
}
ScmServiceServer is the server API for ScmService service. All implementations must embed UnimplementedScmServiceServer for forward compatibility.
type UnimplementedScmServiceServer ¶
type UnimplementedScmServiceServer struct{}
UnimplementedScmServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedScmServiceServer) GetPRDetails ¶
func (UnimplementedScmServiceServer) GetPRDetails(context.Context, *GetPRDetailsRequest) (*GetPRDetailsResponse, error)
type UnsafeScmServiceServer ¶
type UnsafeScmServiceServer interface {
// contains filtered or unexported methods
}
UnsafeScmServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ScmServiceServer will result in compilation errors.