Documentation
¶
Index ¶
- Constants
- func NormalizeWindow(since, until time.Time) (time.Time, time.Time)
- func ParseSinceAtNow(value string, now time.Time) (time.Time, error)
- func ParseUntilAtNow(value string, now time.Time) (time.Time, error)
- func RenderMarkdown(dispatch *Dispatch) string
- type APIBranches
- type APIBullet
- type APIRepo
- type APISection
- type APITotals
- type APIWarnings
- type APIWindow
- type Bullet
- type CloudClient
- type CloudConfig
- type CreateDispatchRequest
- type CreateDispatchResponse
- type Dispatch
- type Mode
- type Options
- type RepoGroup
- type Section
- type Voice
- type Window
Constants ¶
View Source
const CloudRepoLimit = 5
CloudRepoLimit caps how many repos the cloud mode may query in one request.
Variables ¶
This section is empty.
Functions ¶
func ParseSinceAtNow ¶
ParseSinceAtNow parses durations like 7d, relative times like "2 days ago", RFC3339 timestamps, and ISO dates.
func RenderMarkdown ¶
Types ¶
type APIBranches ¶
func (*APIBranches) UnmarshalJSON ¶
func (b *APIBranches) UnmarshalJSON(data []byte) error
type APIRepo ¶
type APIRepo struct {
FullName string `json:"full_name"`
URL string `json:"url,omitempty"`
Sections []APISection `json:"sections"`
}
type APISection ¶
type APIWarnings ¶
type CloudClient ¶
type CloudClient struct {
// contains filtered or unexported fields
}
func NewCloudClient ¶
func NewCloudClient(cfg CloudConfig) *CloudClient
func (*CloudClient) CreateDispatch ¶
func (c *CloudClient) CreateDispatch(ctx context.Context, reqBody CreateDispatchRequest) (*CreateDispatchResponse, error)
type CloudConfig ¶
type CreateDispatchRequest ¶
type CreateDispatchResponse ¶
type CreateDispatchResponse struct {
Window APIWindow `json:"window"`
Title string `json:"title,omitempty"`
CoveredRepos []string `json:"covered_repos,omitempty"`
Branches APIBranches `json:"branches,omitempty"`
Voice *string `json:"voice"`
Repos []APIRepo `json:"repos,omitempty"`
Totals APITotals `json:"totals"`
Warnings APIWarnings `json:"warnings"`
GeneratedText string `json:"generated_text,omitempty"`
GeneratedMarkdown string `json:"generated_markdown,omitempty"`
}
type Options ¶
type Voice ¶
func ResolveVoice ¶
Click to show internal directories.
Click to hide internal directories.