Documentation
¶
Index ¶
- type AppendKVRequest
- type AppendRowRequest
- type BackupSegmentEntry
- type BackupSegmentsRequest
- type BackupSegmentsResponse
- type BatchKVItem
- type BatchKVRequest
- type BatchKVResponse
- type BatchRowItem
- type BatchRowsRequest
- type BatchRowsResponse
- type BeginTransactionRequest
- type BeginTransactionResponse
- type BtreeBackupRequest
- type BtreeBackupResponse
- type CheckpointResponse
- type CommitTransactionResponse
- type DeleteColumnsRequest
- type DeleteColumnsResponse
- type DeleteKVResponse
- type DeleteRowResponse
- type GetKVResponse
- type GetRowResponse
- type HealthResponse
- type OffsetResponse
- type PutKVRequest
- type PutKVResponse
- type PutRowRequest
- type PutRowResponse
- type Service
- type StatsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppendKVRequest ¶
type AppendRowRequest ¶
type BackupSegmentEntry ¶
type BackupSegmentsRequest ¶
type BackupSegmentsResponse ¶
type BackupSegmentsResponse struct {
Backups []BackupSegmentEntry `json:"backups"`
}
type BatchKVItem ¶
BatchKVItem represents a single KV item in a batch.
type BatchKVRequest ¶
type BatchKVRequest struct {
// "put" or "delete"
Operation string `json:"operation"`
Items []BatchKVItem `json:"items"`
Keys []string `json:"keys"`
}
BatchKVRequest represents batch operations request.
type BatchKVResponse ¶
BatchKVResponse represents batch operations response.
type BatchRowItem ¶
type BatchRowsRequest ¶
type BatchRowsRequest struct {
Operation string `json:"operation"`
Rows []BatchRowItem `json:"rows"`
}
type BatchRowsResponse ¶
type BeginTransactionRequest ¶
type BtreeBackupRequest ¶
type BtreeBackupRequest struct {
Path string `json:"path"`
}
type BtreeBackupResponse ¶
type CheckpointResponse ¶
type DeleteColumnsRequest ¶
type DeleteColumnsResponse ¶
type DeleteColumnsResponse struct {
Success bool `json:"success"`
}
type DeleteKVResponse ¶
type DeleteKVResponse struct {
Success bool `json:"success"`
}
type DeleteRowResponse ¶
type DeleteRowResponse struct {
Success bool `json:"success"`
}
type GetKVResponse ¶
type GetRowResponse ¶
type HealthResponse ¶
type OffsetResponse ¶
type PutKVRequest ¶
type PutKVRequest struct {
Value string `json:"value"`
}
type PutKVResponse ¶
type PutKVResponse struct {
Success bool `json:"success"`
}
type PutRowRequest ¶
type PutRowResponse ¶
type PutRowResponse struct {
Success bool `json:"success"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements HTTP API handlers for UnisonDB.
func NewService ¶
NewService creates a new HTTP API service.
func (*Service) HandleHealth ¶
func (s *Service) HandleHealth(w http.ResponseWriter, r *http.Request)
HandleHealth handles the /health endpoint for server health checks.
func (*Service) RegisterRoutes ¶
RegisterRoutes registers all HTTP API routes with the given router.
Click to show internal directories.
Click to hide internal directories.