Documentation
¶
Overview ¶
Package main provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.
Index ¶
- func Handler(si ServerInterface) http.Handler
- func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
- func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
- func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
- type ChiServerOptions
- type InvalidParamFormatError
- type MiddlewareFunc
- type RequiredHeaderError
- type RequiredParamError
- type ServerInterface
- type ServerInterfaceWrapper
- func (siw *ServerInterfaceWrapper) ArchiveAgendaItemById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) CreateAgendaItem(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAgendaItemById(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetAgendaItems(w http.ResponseWriter, r *http.Request)
- func (siw *ServerInterfaceWrapper) GetServiceInfo(w http.ResponseWriter, r *http.Request)
- type TooManyValuesForParamError
- type UnescapedCookieParamError
- type UnmarshallingParamError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(si ServerInterface) http.Handler
Handler creates http.Handler with routing matching OpenAPI spec.
func HandlerFromMux ¶
func HandlerFromMux(si ServerInterface, r chi.Router) http.Handler
HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.
func HandlerFromMuxWithBaseURL ¶
func HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler
func HandlerWithOptions ¶
func HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler
HandlerWithOptions creates http.Handler with additional options
Types ¶
type ChiServerOptions ¶
type ChiServerOptions struct { BaseURL string BaseRouter chi.Router Middlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
type InvalidParamFormatError ¶
func (*InvalidParamFormatError) Error ¶
func (e *InvalidParamFormatError) Error() string
func (*InvalidParamFormatError) Unwrap ¶
func (e *InvalidParamFormatError) Unwrap() error
type RequiredHeaderError ¶
func (*RequiredHeaderError) Error ¶
func (e *RequiredHeaderError) Error() string
func (*RequiredHeaderError) Unwrap ¶
func (e *RequiredHeaderError) Unwrap() error
type RequiredParamError ¶
type RequiredParamError struct {
ParamName string
}
func (*RequiredParamError) Error ¶
func (e *RequiredParamError) Error() string
type ServerInterface ¶
type ServerInterface interface { // Get all Agenda Items // (GET /agenda-items) GetAgendaItems(w http.ResponseWriter, r *http.Request) // Create an Agenda Item // (POST /agenda-items) CreateAgendaItem(w http.ResponseWriter, r *http.Request) // Archive an Agenda Item by ID // (DELETE /agenda-items/{id}) ArchiveAgendaItemById(w http.ResponseWriter, r *http.Request, id string) // Get an Agenda Item by ID // (GET /agenda-items/{id}) GetAgendaItemById(w http.ResponseWriter, r *http.Request, id string) // Get Service Info // (GET /service/info) GetServiceInfo(w http.ResponseWriter, r *http.Request) }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) ArchiveAgendaItemById ¶
func (siw *ServerInterfaceWrapper) ArchiveAgendaItemById(w http.ResponseWriter, r *http.Request)
ArchiveAgendaItemById operation middleware
func (*ServerInterfaceWrapper) CreateAgendaItem ¶
func (siw *ServerInterfaceWrapper) CreateAgendaItem(w http.ResponseWriter, r *http.Request)
CreateAgendaItem operation middleware
func (*ServerInterfaceWrapper) GetAgendaItemById ¶
func (siw *ServerInterfaceWrapper) GetAgendaItemById(w http.ResponseWriter, r *http.Request)
GetAgendaItemById operation middleware
func (*ServerInterfaceWrapper) GetAgendaItems ¶
func (siw *ServerInterfaceWrapper) GetAgendaItems(w http.ResponseWriter, r *http.Request)
GetAgendaItems operation middleware
func (*ServerInterfaceWrapper) GetServiceInfo ¶
func (siw *ServerInterfaceWrapper) GetServiceInfo(w http.ResponseWriter, r *http.Request)
GetServiceInfo operation middleware
type TooManyValuesForParamError ¶
func (*TooManyValuesForParamError) Error ¶
func (e *TooManyValuesForParamError) Error() string
type UnescapedCookieParamError ¶
func (*UnescapedCookieParamError) Error ¶
func (e *UnescapedCookieParamError) Error() string
func (*UnescapedCookieParamError) Unwrap ¶
func (e *UnescapedCookieParamError) Unwrap() error
type UnmarshallingParamError ¶
func (*UnmarshallingParamError) Error ¶
func (e *UnmarshallingParamError) Error() string
func (*UnmarshallingParamError) Unwrap ¶
func (e *UnmarshallingParamError) Unwrap() error