Documentation
¶
Overview ¶
Package rpc is a generated protocol buffer package.
It is generated from these files:
github.com/codelingo/actions/actions/codelingo/rewrite/rpc/rewrite.proto
It has these top-level messages:
Request Hunk
Index ¶
- type Hunk
- func (*Hunk) Descriptor() ([]byte, []int)
- func (m *Hunk) GetComment() string
- func (m *Hunk) GetCommentOutputFile() string
- func (m *Hunk) GetDecoratorOptions() string
- func (m *Hunk) GetEndOffset() int32
- func (m *Hunk) GetFilename() string
- func (m *Hunk) GetSRC() string
- func (m *Hunk) GetStartOffset() int32
- func (*Hunk) ProtoMessage()
- func (m *Hunk) Reset()
- func (m *Hunk) String() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetDepot() string
- func (m *Request) GetDir() string
- func (m *Request) GetDotlingo() string
- func (m *Request) GetGenerateComments() bool
- func (m *Request) GetHost() string
- func (m *Request) GetHostname() string
- func (m *Request) GetIsPullRequest() bool
- func (m *Request) GetOwner() string
- func (m *Request) GetOwnerOrDepot() isRequest_OwnerOrDepot
- func (m *Request) GetPatches() []string
- func (m *Request) GetPullRequestID() int64
- func (m *Request) GetRepo() string
- func (m *Request) GetSha() string
- func (m *Request) GetVcs() string
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (*Request) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type Request_Depot
- type Request_Owner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hunk ¶
type Hunk struct { Filename string `protobuf:"bytes,1,opt,name=filename" json:"filename,omitempty"` StartOffset int32 `protobuf:"varint,2,opt,name=startOffset" json:"startOffset,omitempty"` EndOffset int32 `protobuf:"varint,3,opt,name=endOffset" json:"endOffset,omitempty"` SRC string `protobuf:"bytes,4,opt,name=SRC" json:"SRC,omitempty"` Comment string `protobuf:"bytes,5,opt,name=comment" json:"comment,omitempty"` // Hack to pass flag from CLIApp to writer CommentOutputFile string `protobuf:"bytes,6,opt,name=commentOutputFile" json:"commentOutputFile,omitempty"` DecoratorOptions string `protobuf:"bytes,7,opt,name=decoratorOptions" json:"decoratorOptions,omitempty"` }
func (*Hunk) Descriptor ¶
func (*Hunk) GetComment ¶
func (*Hunk) GetCommentOutputFile ¶
func (*Hunk) GetDecoratorOptions ¶
func (*Hunk) GetEndOffset ¶
func (*Hunk) GetFilename ¶
func (*Hunk) GetStartOffset ¶
func (*Hunk) ProtoMessage ¶
func (*Hunk) ProtoMessage()
type Request ¶
type Request struct { Host string `protobuf:"bytes,1,opt,name=host" json:"host,omitempty"` Hostname string `protobuf:"bytes,2,opt,name=hostname" json:"hostname,omitempty"` GenerateComments bool `protobuf:"varint,3,opt,name=generateComments" json:"generateComments,omitempty"` Repo string `protobuf:"bytes,4,opt,name=repo" json:"repo,omitempty"` Sha string `protobuf:"bytes,5,opt,name=sha" json:"sha,omitempty"` Patches []string `protobuf:"bytes,6,rep,name=Patches" json:"Patches,omitempty"` IsPullRequest bool `protobuf:"varint,7,opt,name=isPullRequest" json:"isPullRequest,omitempty"` PullRequestID int64 `protobuf:"varint,8,opt,name=pullRequestID" json:"pullRequestID,omitempty"` Vcs string `protobuf:"bytes,9,opt,name=vcs" json:"vcs,omitempty"` Dotlingo string `protobuf:"bytes,10,opt,name=dotlingo" json:"dotlingo,omitempty"` Dir string `protobuf:"bytes,11,opt,name=dir" json:"dir,omitempty"` // Types that are valid to be assigned to OwnerOrDepot: // *Request_Owner // *Request_Depot OwnerOrDepot isRequest_OwnerOrDepot `protobuf_oneof:"ownerOrDepot"` }
The request message containing the files or directories to review.
func (*Request) Descriptor ¶
func (*Request) GetDotlingo ¶
func (*Request) GetGenerateComments ¶
func (*Request) GetHostname ¶
func (*Request) GetIsPullRequest ¶
func (*Request) GetOwnerOrDepot ¶
func (m *Request) GetOwnerOrDepot() isRequest_OwnerOrDepot
func (*Request) GetPatches ¶
func (*Request) GetPullRequestID ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
type Request_Depot ¶
type Request_Depot struct {
Depot string `protobuf:"bytes,13,opt,name=depot,oneof"`
}
type Request_Owner ¶
type Request_Owner struct {
Owner string `protobuf:"bytes,12,opt,name=owner,oneof"`
}
Click to show internal directories.
Click to hide internal directories.