Documentation ¶
Overview ¶
This file was automatically generated by git.sr.ht/~farhaven/oapi-gen@(devel)
DO NOT EDIT!
Index ¶
- Variables
- func NewServer(impl ServerImplementation) *mux.Router
- type FooCollection
- type FooCollection_Contents
- type FooCollection_Contents_Item
- type FooSet
- type FooSet_Val
- type FooSingle
- type GETHealthHandler
- type GETHealthRequest
- type GETHealthResponse
- type ServerImplementation
- type UpdateFooHandler
- type UpdateFooRequest
- type UpdateFooRequestBody
- type UpdateFooRequestBody_FooSpecs
- type UpdateFooRequestBody_FooSpecs_Item
- type UpdateFooRequestBody_FooSpecs_Item_Foo
- type UpdateFooRequestBody_FooSpecs_Item_Op
- type UpdateFooResponse
- type UpdateFooResponse200
Constants ¶
This section is empty.
Variables ¶
View Source
var UpdateFooRequestBody_FooSpecs_Item_Op_Values = map[string]bool{"add": true, "remove": true}
Functions ¶
func NewServer ¶
func NewServer(impl ServerImplementation) *mux.Router
Types ¶
type FooCollection ¶ added in v0.3.0
type FooCollection struct {
Contents FooCollection_Contents "json:\"contents,omitempty\""
}
type FooCollection_Contents ¶ added in v0.3.0
type FooCollection_Contents []FooCollection_Contents_Item
func (*FooCollection_Contents) UnmarshalJSON ¶ added in v0.3.0
func (a *FooCollection_Contents) UnmarshalJSON(d []byte) error
type FooCollection_Contents_Item ¶ added in v0.3.0
type FooCollection_Contents_Item interface {
// contains filtered or unexported methods
}
type FooSet ¶ added in v0.3.0
type FooSet struct { ID *string "json:\"id,omitempty\"" Val FooSet_Val "json:\"val,omitempty\"" }
type FooSet_Val ¶ added in v0.3.0
type GETHealthHandler ¶ added in v0.3.1
type GETHealthHandler interface { HandleRequestError(context.Context, http.ResponseWriter, *http.Request, error) HandleResponseError(context.Context, http.ResponseWriter, *http.Request, error) GETHealth(context.Context, GETHealthRequest) (GETHealthResponse, error) }
type GETHealthRequest ¶ added in v0.3.1
type GETHealthRequest struct {
Endpoint string
}
type GETHealthResponse ¶ added in v0.3.1
type GETHealthResponse interface { StatusCode() int // contains filtered or unexported methods }
type ServerImplementation ¶
type ServerImplementation interface { UpdateFooHandler GETHealthHandler }
type UpdateFooHandler ¶ added in v0.3.0
type UpdateFooHandler interface { HandleRequestError(context.Context, http.ResponseWriter, *http.Request, error) HandleResponseError(context.Context, http.ResponseWriter, *http.Request, error) UpdateFoo(context.Context, UpdateFooRequest) (UpdateFooResponse, error) }
type UpdateFooRequest ¶ added in v0.3.0
type UpdateFooRequest struct { Name string Body UpdateFooRequestBody }
type UpdateFooRequestBody ¶ added in v0.3.0
type UpdateFooRequestBody struct {
FooSpecs UpdateFooRequestBody_FooSpecs "json:\"fooSpecs,omitempty\""
}
type UpdateFooRequestBody_FooSpecs ¶ added in v0.3.0
type UpdateFooRequestBody_FooSpecs []UpdateFooRequestBody_FooSpecs_Item
type UpdateFooRequestBody_FooSpecs_Item ¶ added in v0.3.0
type UpdateFooRequestBody_FooSpecs_Item struct { Foo UpdateFooRequestBody_FooSpecs_Item_Foo "json:\"foo,omitempty\"" Op *UpdateFooRequestBody_FooSpecs_Item_Op "json:\"op,omitempty\"" }
func (*UpdateFooRequestBody_FooSpecs_Item) UnmarshalJSON ¶ added in v0.3.0
func (o *UpdateFooRequestBody_FooSpecs_Item) UnmarshalJSON(d []byte) error
type UpdateFooRequestBody_FooSpecs_Item_Foo ¶ added in v0.3.0
type UpdateFooRequestBody_FooSpecs_Item_Foo interface {
// contains filtered or unexported methods
}
type UpdateFooRequestBody_FooSpecs_Item_Op ¶ added in v0.3.0
type UpdateFooRequestBody_FooSpecs_Item_Op string
type UpdateFooResponse ¶ added in v0.3.0
type UpdateFooResponse interface { StatusCode() int // contains filtered or unexported methods }
type UpdateFooResponse200 ¶ added in v0.3.0
type UpdateFooResponse200 struct{ Payload string }
func (UpdateFooResponse200) MarshalJSON ¶ added in v0.3.0
func (r UpdateFooResponse200) MarshalJSON() ([]byte, error)
func (UpdateFooResponse200) StatusCode ¶ added in v0.3.0
func (UpdateFooResponse200) StatusCode() int
Click to show internal directories.
Click to hide internal directories.