Documentation
¶
Overview ¶
Package api provides HTTP handlers for the CodeAI API.
Package api provides the HTTP API for CodeAI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRouterWithConfig ¶
func NewRouterWithConfig(h *handlers.Handler, cfg RouterConfig) chi.Router
NewRouterWithConfig creates a new Chi router with optional handlers.
Types ¶
type RouterConfig ¶
type RouterConfig struct {
EventHandler *handlers.EventHandler
WebhookHandler *webhooks.Handler
}
RouterConfig holds optional handlers for the router.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server wraps an HTTP server with graceful shutdown support.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package handlers contains HTTP request handlers for the API.
|
Package handlers contains HTTP request handlers for the API. |
|
compensation
Package compensation provides HTTP handlers for compensation operations.
|
Package compensation provides HTTP handlers for compensation operations. |
|
jobs
Package jobs provides HTTP handlers for job-related API endpoints.
|
Package jobs provides HTTP handlers for job-related API endpoints. |
|
notifications
Package notifications provides HTTP handlers for notification endpoints.
|
Package notifications provides HTTP handlers for notification endpoints. |
|
webhooks
Package webhooks provides HTTP handlers for webhook management endpoints.
|
Package webhooks provides HTTP handlers for webhook management endpoints. |
|
workflow
Package workflow provides HTTP handlers for workflow operations.
|
Package workflow provides HTTP handlers for workflow operations. |
|
Package middleware provides HTTP middleware for the API.
|
Package middleware provides HTTP middleware for the API. |
|
Package testing provides test utilities for the API package.
|
Package testing provides test utilities for the API package. |
|
Package types defines API request and response types.
|
Package types defines API request and response types. |
Click to show internal directories.
Click to hide internal directories.