Versions in this module Expand all Collapse all v0 v0.5.3 Apr 3, 2026 v0.5.2 Mar 30, 2026 Changes in this version + func CheckResponse(resp *http.Response) error + func DecodeJSON(resp *http.Response, dest any) error + type Client struct + func NewClient(token string) *Client + func (c *Client) Delete(ctx context.Context, path string) (*http.Response, error) + func (c *Client) Get(ctx context.Context, path string) (*http.Response, error) + func (c *Client) Patch(ctx context.Context, path string, body any) (*http.Response, error) + func (c *Client) Post(ctx context.Context, path string, body any) (*http.Response, error) + func (c *Client) Put(ctx context.Context, path string, body any) (*http.Response, error) + type ErrorResponse struct + Error string + type TrailCreateRequest struct + Assignees []string + Base string + Body string + BranchName string + Labels []string + Priority string + Status string + Title string + Type string + type TrailCreateResponse struct + BranchCreated bool + Trail TrailResource + type TrailDetailResponse struct + Checkpoints trail.Checkpoints + Discussion trail.Discussion + Trail TrailResource + type TrailListResponse struct + DefaultBranch string + RepoFullName string + Trails []TrailResource + UpdatedAt time.Time + type TrailResource struct + Assignees []string + Author string + Base string + Body string + Branch string + CheckpointCount int + CommentCount int + CommitsAhead int + CreatedAt time.Time + Labels []string + MergedAt *time.Time + Priority string + Reviewers []trail.Reviewer + Status string + Title string + TrailID string + Type string + UnresolvedCount int + UpdatedAt time.Time + func (r *TrailResource) ToMetadata() *trail.Metadata + type TrailUpdateRequest struct + Assignees *[]string + Base *string + Body *string + Branch *string + Labels *[]string + Priority *string + Status *string + Title *string + Type *string + type TrailUpdateResponse struct + Trail TrailResource v0.5.1 Mar 19, 2026 Changes in this version + const BaseURLEnvVar + const DefaultBaseURL + var ErrInsecureHTTP = errors.New(...) + func BaseURL() string + func RequireSecureURL(baseURL string) error + func ResolveURL(path string) (string, error) + func ResolveURLFromBase(baseURL, path string) (string, error)