api

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

This file was automatically generated by git.sr.ht/~farhaven/oapi-gen@(devel)

DO NOT EDIT!

Index

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 FooSet_Val map[string]any

type FooSingle added in v0.3.0

type FooSingle struct {
	ID  *string "json:\"id,omitempty\""
	Val *string "json:\"val,omitempty\""
}

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

Directories

Path Synopsis
Package support contains supporting types for the generated API.
Package support contains supporting types for the generated API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL