-
Notifications
You must be signed in to change notification settings - Fork 4
/
oas_unimplemented_gen.go
69 lines (58 loc) · 1.75 KB
/
oas_unimplemented_gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Code generated by ogen, DO NOT EDIT.
package pyroscopeapi
import (
"context"
ht "github.com/ogen-go/ogen/http"
)
// UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
type UnimplementedHandler struct{}
var _ Handler = UnimplementedHandler{}
// GetApps implements getApps operation.
//
// Returns list of application metadata.
// Used by Grafana to test connection to Pyroscope.
//
// GET /api/apps
func (UnimplementedHandler) GetApps(ctx context.Context) (r []ApplicationMetadata, _ error) {
return r, ht.ErrNotImplemented
}
// Ingest implements ingest operation.
//
// Push data to Pyroscope.
//
// POST /ingest
func (UnimplementedHandler) Ingest(ctx context.Context, req *IngestReqWithContentType, params IngestParams) error {
return ht.ErrNotImplemented
}
// LabelValues implements labelValues operation.
//
// Returns list of label values.
//
// GET /label-values
func (UnimplementedHandler) LabelValues(ctx context.Context, params LabelValuesParams) (r LabelValues, _ error) {
return r, ht.ErrNotImplemented
}
// Labels implements labels operation.
//
// Returns list of labels.
//
// GET /labels
func (UnimplementedHandler) Labels(ctx context.Context, params LabelsParams) (r Labels, _ error) {
return r, ht.ErrNotImplemented
}
// Render implements render operation.
//
// Renders given query.
// One of `query` or `key` is required.
//
// GET /render
func (UnimplementedHandler) Render(ctx context.Context, params RenderParams) (r *FlamebearerProfileV1, _ error) {
return r, ht.ErrNotImplemented
}
// NewError creates *ErrorStatusCode from error returned by handler.
//
// Used for common default response.
func (UnimplementedHandler) NewError(ctx context.Context, err error) (r *ErrorStatusCode) {
r = new(ErrorStatusCode)
return r
}