Documentation
¶
Overview ¶
Package api exposes stable HTTP API contracts shared by the Looper CLI and daemon.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope[T any] struct { OK bool `json:"ok"` Data *T `json:"data,omitempty"` Error *Error `json:"error,omitempty"` RequestID string `json:"requestId"` }
type ErrorCode ¶
type ErrorCode string
const ( ErrorCodeActiveRunNotFound ErrorCode = "ACTIVE_RUN_NOT_FOUND" ErrorCodeAgentNotConfigured ErrorCode = "AGENT_NOT_CONFIGURED" ErrorCodeAuthMisconfigured ErrorCode = "AUTH_MISCONFIGURED" ErrorCodeInternalError ErrorCode = "INTERNAL_ERROR" ErrorCodeLoopConflict ErrorCode = "LOOP_CONFLICT" ErrorCodeLoopNotFound ErrorCode = "LOOP_NOT_FOUND" ErrorCodeMethodNotAllowed ErrorCode = "METHOD_NOT_ALLOWED" ErrorCodeProjectAmbiguous ErrorCode = "PROJECT_AMBIGUOUS" ErrorCodeProjectIDConflict ErrorCode = "PROJECT_ID_CONFLICT" ErrorCodeProjectNotFound ErrorCode = "PROJECT_NOT_FOUND" ErrorCodePRNotFound ErrorCode = "PR_NOT_FOUND" ErrorCodePullRequestNotFound ErrorCode = "PULL_REQUEST_NOT_FOUND" ErrorCodePullRequestProjectMismatch ErrorCode = "PULL_REQUEST_PROJECT_MISMATCH" ErrorCodeRouteNotFound ErrorCode = "ROUTE_NOT_FOUND" ErrorCodeValidationFailed ErrorCode = "VALIDATION_FAILED" )
func AllErrorCodes ¶
func AllErrorCodes() []ErrorCode
Click to show internal directories.
Click to hide internal directories.