api

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 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

This section is empty.

Functions

func NewServer

func NewServer(impl ServerImplementation) *mux.Router

Types

type Foo

type Foo struct {
	Data Foo_Data "json:\"data,omitempty\""
}

type Foo_Data

type Foo_Data []Foo_Data_Item

type Foo_Data_Item

type Foo_Data_Item struct {
	Amplitude int     "json:\"amplitude\""
	Color     *string "json:\"color,omitempty\""
	Timestamp int     "json:\"timestamp\""
}

type GetFooHandler

type GetFooHandler interface {
	HandleRequestError(context.Context, http.ResponseWriter, *http.Request, error)
	HandleResponseError(context.Context, http.ResponseWriter, *http.Request, error)
	GetFoo(context.Context, GetFooRequest) (GetFooResponse, error)
}

type GetFooRequest

type GetFooRequest struct {
	Name string
	Size *int
}

type GetFooResponse

type GetFooResponse interface {
	StatusCode() int
	// contains filtered or unexported methods
}

type GetFooResponse200

type GetFooResponse200 struct{ Payload Foo }

func (GetFooResponse200) MarshalJSON

func (r GetFooResponse200) MarshalJSON() ([]byte, error)

func (GetFooResponse200) StatusCode

func (GetFooResponse200) StatusCode() int

type ServerImplementation

type ServerImplementation interface {
	GetFooHandler
}

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