feat: polish & windviz & deploy
This commit is contained in:
parent
81b8e763bd
commit
465ad00f7b
78 changed files with 20622 additions and 2154 deletions
|
|
@ -13,15 +13,123 @@ type UnimplementedHandler struct{}
|
|||
|
||||
var _ Handler = UnimplementedHandler{}
|
||||
|
||||
// CancelDatasetJob implements cancelDatasetJob operation.
|
||||
//
|
||||
// Cancel a running download job.
|
||||
//
|
||||
// DELETE /api/v1/admin/jobs/{id}
|
||||
func (UnimplementedHandler) CancelDatasetJob(ctx context.Context, params CancelDatasetJobParams) error {
|
||||
return ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// CancelPredictionJob implements cancelPredictionJob operation.
|
||||
//
|
||||
// Cancel a queued prediction job.
|
||||
//
|
||||
// DELETE /api/v1/predictions/{id}
|
||||
func (UnimplementedHandler) CancelPredictionJob(ctx context.Context, params CancelPredictionJobParams) error {
|
||||
return ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// CreatePredictionJob implements createPredictionJob operation.
|
||||
//
|
||||
// Enqueue an asynchronous prediction.
|
||||
//
|
||||
// POST /api/v1/predictions
|
||||
func (UnimplementedHandler) CreatePredictionJob(ctx context.Context, req *PredictionV2Request) (r *PredictionJob, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// DeleteDataset implements deleteDataset operation.
|
||||
//
|
||||
// Delete a stored dataset by filename.
|
||||
//
|
||||
// DELETE /api/v1/admin/datasets/{name}
|
||||
func (UnimplementedHandler) DeleteDataset(ctx context.Context, params DeleteDatasetParams) error {
|
||||
return ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// GetDatasetJob implements getDatasetJob operation.
|
||||
//
|
||||
// Get a dataset download job.
|
||||
//
|
||||
// GET /api/v1/admin/jobs/{id}
|
||||
func (UnimplementedHandler) GetDatasetJob(ctx context.Context, params GetDatasetJobParams) (r *DownloadJob, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// GetPredictionJob implements getPredictionJob operation.
|
||||
//
|
||||
// Poll an asynchronous prediction job.
|
||||
//
|
||||
// GET /api/v1/predictions/{id}
|
||||
func (UnimplementedHandler) GetPredictionJob(ctx context.Context, params GetPredictionJobParams) (r *PredictionJob, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// GetServiceStatus implements getServiceStatus operation.
|
||||
//
|
||||
// Service status summary.
|
||||
//
|
||||
// GET /api/v1/admin/status
|
||||
func (UnimplementedHandler) GetServiceStatus(ctx context.Context) (r *StatusResponse, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// GetWindField implements getWindField operation.
|
||||
//
|
||||
// Wind-field velocity grid (leaflet-velocity / wind-layer format).
|
||||
//
|
||||
// GET /api/v1/wind/field
|
||||
func (UnimplementedHandler) GetWindField(ctx context.Context, params GetWindFieldParams) (r []WindComponent, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// GetWindMeta implements getWindMeta operation.
|
||||
//
|
||||
// Wind-field visualization metadata.
|
||||
//
|
||||
// GET /api/v1/wind/meta
|
||||
func (UnimplementedHandler) GetWindMeta(ctx context.Context) (r *WindMeta, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// ListDatasetJobs implements listDatasetJobs operation.
|
||||
//
|
||||
// List dataset download jobs.
|
||||
//
|
||||
// GET /api/v1/admin/jobs
|
||||
func (UnimplementedHandler) ListDatasetJobs(ctx context.Context) (r []DownloadJob, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// ListDatasets implements listDatasets operation.
|
||||
//
|
||||
// List stored datasets.
|
||||
//
|
||||
// GET /api/v1/admin/datasets
|
||||
func (UnimplementedHandler) ListDatasets(ctx context.Context) (r *DatasetList, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// PerformPrediction implements performPrediction operation.
|
||||
//
|
||||
// Perform prediction.
|
||||
// Tawhiri-compatible prediction.
|
||||
//
|
||||
// GET /api/v1/prediction
|
||||
func (UnimplementedHandler) PerformPrediction(ctx context.Context, params PerformPredictionParams) (r *PredictionResponse, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// PerformPredictionV2 implements performPredictionV2 operation.
|
||||
//
|
||||
// Profile-driven prediction (synchronous).
|
||||
//
|
||||
// POST /api/v2/prediction
|
||||
func (UnimplementedHandler) PerformPredictionV2(ctx context.Context, req *PredictionV2Request) (r *PredictionV2Response, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// ReadinessCheck implements readinessCheck operation.
|
||||
//
|
||||
// Readiness check.
|
||||
|
|
@ -31,10 +139,19 @@ func (UnimplementedHandler) ReadinessCheck(ctx context.Context) (r *ReadinessRes
|
|||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// NewError creates *ErrorStatusCode from error returned by handler.
|
||||
// TriggerDatasetDownload implements triggerDatasetDownload operation.
|
||||
//
|
||||
// Trigger a dataset download.
|
||||
//
|
||||
// POST /api/v1/admin/datasets
|
||||
func (UnimplementedHandler) TriggerDatasetDownload(ctx context.Context, req *DownloadRequest) (r *DownloadAccepted, _ error) {
|
||||
return r, ht.ErrNotImplemented
|
||||
}
|
||||
|
||||
// NewError creates *DefaultErrorStatusCode from error returned by handler.
|
||||
//
|
||||
// Used for common default response.
|
||||
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode) {
|
||||
r = new(ErrorStatusCode)
|
||||
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *DefaultErrorStatusCode) {
|
||||
r = new(DefaultErrorStatusCode)
|
||||
return r
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue