forked from oapi-codegen/oapi-codegen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
issue.gen.go
39 lines (31 loc) · 914 Bytes
/
issue.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
// Package headdigitofhttpheader provides primitives to interact with the openapi HTTP API.
//
// Code generated by github.com/clinia/oapi-codegen version (devel) DO NOT EDIT.
package headdigitofhttpheader
import (
"context"
"fmt"
"net/http"
)
type N200ResponseHeaders struct {
N000Foo string
}
type N200Response struct {
Headers N200ResponseHeaders
}
type GetFooRequestObject struct {
}
type GetFooResponseObject interface {
VisitGetFooResponse(w http.ResponseWriter) error
}
type GetFoo200Response = N200Response
func (response GetFoo200Response) VisitGetFooResponse(w http.ResponseWriter) error {
w.Header().Set("000-foo", fmt.Sprint(response.Headers.N000Foo))
w.WriteHeader(200)
return nil
}
// StrictServerInterface represents all server handlers.
type StrictServerInterface interface {
// (GET /foo)
GetFoo(ctx context.Context, request GetFooRequestObject) (GetFooResponseObject, error)
}