scm

package
v0.6.49 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: AGPL-3.0, Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScmService_GetPRDetails_FullMethodName = "/babysit.ScmService/GetPRDetails"
)

Variables

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

Deprecated: Use CICheck.ProtoReflect.Descriptor instead.

func (*CICheck) GetCheckRunId

func (x *CICheck) GetCheckRunId() int64

func (*CICheck) GetConclusion

func (x *CICheck) GetConclusion() string

func (*CICheck) GetName

func (x *CICheck) GetName() string

func (*CICheck) GetStatus

func (x *CICheck) GetStatus() string

func (*CICheck) ProtoMessage

func (*CICheck) ProtoMessage()

func (*CICheck) ProtoReflect

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

func (*CICheck) Reset

func (x *CICheck) Reset()

func (*CICheck) String

func (x *CICheck) String() string

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

Deprecated: Use PRComment.ProtoReflect.Descriptor instead.

func (*PRComment) GetAuthor

func (x *PRComment) GetAuthor() string

func (*PRComment) GetBody

func (x *PRComment) GetBody() string

func (*PRComment) GetCreatedAtUnix

func (x *PRComment) GetCreatedAtUnix() int64

func (*PRComment) GetId

func (x *PRComment) GetId() string

func (*PRComment) GetType

func (x *PRComment) GetType() string

func (*PRComment) ProtoMessage

func (*PRComment) ProtoMessage()

func (*PRComment) ProtoReflect

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

func (*PRComment) Reset

func (x *PRComment) Reset()

func (*PRComment) String

func (x *PRComment) String() string

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

Deprecated: Use PRDetails.ProtoReflect.Descriptor instead.

func (*PRDetails) GetBody

func (x *PRDetails) GetBody() string

func (*PRDetails) GetCiChecks

func (x *PRDetails) GetCiChecks() []*CICheck

func (*PRDetails) GetComments

func (x *PRDetails) GetComments() []*PRComment

func (*PRDetails) GetHeadRef

func (x *PRDetails) GetHeadRef() string

func (*PRDetails) GetState

func (x *PRDetails) GetState() string

func (*PRDetails) GetTitle

func (x *PRDetails) GetTitle() string

func (*PRDetails) ProtoMessage

func (*PRDetails) ProtoMessage()

func (*PRDetails) ProtoReflect

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

func (*PRDetails) Reset

func (x *PRDetails) Reset()

func (*PRDetails) String

func (x *PRDetails) String() string

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

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.

Jump to

Keyboard shortcuts

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