Documentation
¶
Overview ¶
Package worker exposes the bot's one-shot operations over a private, versioned local HTTP service. The current transport is a Unix-domain socket; the request and event schemas are independent of that transport so mutual TLS can be added without changing bot semantics.
Index ¶
Constants ¶
View Source
const ( ProtocolVersion = 1 MinimumProtocol = 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Initialize ¶
type IssueOwnership ¶
type IssueResult ¶
type IssueResult struct {
Owned []IssueOwnership `json:"owned"`
}
type Request ¶
type Request struct {
Protocol int `json:"protocol"`
Remote string `json:"remote"`
Branch string `json:"branch"`
Directory string `json:"directory"`
StateDirectory string `json:"state_directory"`
Repo string `json:"repo"`
Host string `json:"host"`
Agent runner.AgentConfig `json:"agent"`
Verify []string `json:"verify,omitempty"`
PR int `json:"pr,omitempty"`
BaseSHA string `json:"base_sha,omitempty"`
HeadSHA string `json:"head_sha,omitempty"`
}
type Result ¶
type Result struct {
Issue *IssueResult `json:"issue,omitempty"`
Review *ReviewResult `json:"review,omitempty"`
}
type ReviewResult ¶
Click to show internal directories.
Click to hide internal directories.