{"modulePath":"github.com/vmkevv/netforenotes","version":"v0.0.0-20230303201217-18c62bb8618f","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package openapi\n\nPackage openapi provides primitives to interact with the openapi HTTP API.\n\nCode generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.\n\nPackage openapi provides primitives to interact with the openapi HTTP API.\n\nCode generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.\n\n## Functions\n\n```go\nfunc RegisterHandlers(router EchoRouter, si ServerInterface)\n```\nRegisterHandlers adds each server route to the EchoRouter.\n\n```go\nfunc RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)\n```\nRegisters handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.\n\n## Types\n\n```go\ntype AddNote201Response struct {\n}\n```\n\n```go\nfunc (response AddNote201Response) VisitAddNoteResponse(w http.ResponseWriter) error\n```\n\n```go\ntype AddNote4XXJSONResponse struct {\n\tBody       ErrorMessage\n\tStatusCode int\n}\n```\n\n```go\nfunc (response AddNote4XXJSONResponse) VisitAddNoteResponse(w http.ResponseWriter) error\n```\n\n```go\ntype AddNoteJSONRequestBody = NoteCreation\n```\nAddNoteJSONRequestBody defines body for AddNote for application/json ContentType.\n\n```go\ntype AddNoteRequestObject struct {\n\tBody *AddNoteJSONRequestBody\n}\n```\n\n```go\ntype AddNoteResponseObject interface {\n\tVisitAddNoteResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype DeleteNote204Response struct {\n}\n```\n\n```go\nfunc (response DeleteNote204Response) VisitDeleteNoteResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNote4XXJSONResponse struct {\n\tBody       ErrorMessage\n\tStatusCode int\n}\n```\n\n```go\nfunc (response DeleteNote4XXJSONResponse) VisitDeleteNoteResponse(w http.ResponseWriter) error\n```\n\n```go\ntype DeleteNoteRequestObject struct {\n\tId string `json:\"id\"`\n}\n```\n\n```go\ntype DeleteNoteResponseObject interface {\n\tVisitDeleteNoteResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype EchoRouter interface {\n\tCONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tDELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tGET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tHEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tOPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tPATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tPOST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tPUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n\tTRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route\n}\n```\nThis is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration\n\n```go\ntype ErrorMessage struct {\n\tMessage string `json:\"message\"`\n}\n```\nErrorMessage defines model for ErrorMessage.\n\n```go\ntype GetNote200JSONResponse Note\n```\n\n```go\nfunc (response GetNote200JSONResponse) VisitGetNoteResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNote4XXJSONResponse struct {\n\tBody       ErrorMessage\n\tStatusCode int\n}\n```\n\n```go\nfunc (response GetNote4XXJSONResponse) VisitGetNoteResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNoteRequestObject struct {\n\tId string `json:\"id\"`\n}\n```\n\n```go\ntype GetNoteResponseObject interface {\n\tVisitGetNoteResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetNotes200JSONResponse NoteList\n```\n\n```go\nfunc (response GetNotes200JSONResponse) VisitGetNotesResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetNotesParams struct {\n\tSort  GetNotesParamsSort  `form:\"sort\" json:\"sort\"`\n\tOrder GetNotesParamsOrder `form:\"order\" json:\"order\"`\n\n\t// Search Filter notes with some search text in title or body\n\tSearch *string `form:\"search,omitempty\" json:\"search,omitempty\"`\n}\n```\nGetNotesParams defines parameters for GetNotes.\n\n```go\ntype GetNotesParamsOrder string\n```\nGetNotesParamsOrder defines parameters for GetNotes.\n\n```go\nconst (\n\tAsc  GetNotesParamsOrder = \"asc\"\n\tDesc GetNotesParamsOrder = \"desc\"\n)\n```\nDefines values for GetNotesParamsOrder.\n\n```go\ntype GetNotesParamsSort string\n```\nGetNotesParamsSort defines parameters for GetNotes.\n\n```go\nconst (\n\tDate  GetNotesParamsSort = \"date\"\n\tTitle GetNotesParamsSort = \"title\"\n)\n```\nDefines values for GetNotesParamsSort.\n\n```go\ntype GetNotesRequestObject struct {\n\tParams GetNotesParams\n}\n```\n\n```go\ntype GetNotesResponseObject interface {\n\tVisitGetNotesResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype Note struct {\n\tBody      string `json:\"body\"`\n\tCreatedAt int64  `json:\"created_at\"`\n\tId        string `json:\"id\"`\n\tTitle     string `json:\"title\"`\n}\n```\nNote defines model for Note.\n\n```go\ntype NoteBase struct {\n\tCreatedAt int64  `json:\"created_at\"`\n\tTitle     string `json:\"title\"`\n}\n```\nNoteBase defines model for NoteBase.\n\n```go\ntype NoteCreation struct {\n\tBody      string `json:\"body\"`\n\tCreatedAt int64  `json:\"created_at\"`\n\tTitle     string `json:\"title\"`\n}\n```\nNoteCreation defines model for NoteCreation.\n\n```go\ntype NoteList = []NoteListItem\n```\nNoteList defines model for NoteList.\n\n```go\ntype NoteListItem struct {\n\tCreatedAt int64  `json:\"created_at\"`\n\tId        string `json:\"id\"`\n\tTitle     string `json:\"title\"`\n}\n```\nNoteListItem defines model for NoteListItem.\n\n```go\ntype ServerInterface interface {\n\n\t// (POST /note)\n\tAddNote(ctx echo.Context) error\n\n\t// (PUT /note)\n\tUpdateNote(ctx echo.Context) error\n\n\t// (DELETE /note/{id})\n\tDeleteNote(ctx echo.Context, id string) error\n\n\t// (GET /note/{id})\n\tGetNote(ctx echo.Context, id string) error\n\n\t// (GET /notes)\n\tGetNotes(ctx echo.Context, params GetNotesParams) error\n}\n```\nServerInterface represents all server handlers.\n\n```go\nfunc NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface\n```\n\n```go\ntype ServerInterfaceWrapper struct {\n\tHandler ServerInterface\n}\n```\nServerInterfaceWrapper converts echo contexts to parameters.\n\n```go\nfunc (w *ServerInterfaceWrapper) AddNote(ctx echo.Context) error\n```\nAddNote converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) DeleteNote(ctx echo.Context) error\n```\nDeleteNote converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNote(ctx echo.Context) error\n```\nGetNote converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) GetNotes(ctx echo.Context) error\n```\nGetNotes converts echo context to params.\n\n```go\nfunc (w *ServerInterfaceWrapper) UpdateNote(ctx echo.Context) error\n```\nUpdateNote converts echo context to params.\n\n```go\ntype StrictHandlerFunc func(ctx echo.Context, args interface{}) (interface{}, error)\n```\n\n```go\ntype StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc\n```\n\n```go\ntype StrictServerInterface interface {\n\n\t// (POST /note)\n\tAddNote(ctx context.Context, request AddNoteRequestObject) (AddNoteResponseObject, error)\n\n\t// (PUT /note)\n\tUpdateNote(ctx context.Context, request UpdateNoteRequestObject) (UpdateNoteResponseObject, error)\n\n\t// (DELETE /note/{id})\n\tDeleteNote(ctx context.Context, request DeleteNoteRequestObject) (DeleteNoteResponseObject, error)\n\n\t// (GET /note/{id})\n\tGetNote(ctx context.Context, request GetNoteRequestObject) (GetNoteResponseObject, error)\n\n\t// (GET /notes)\n\tGetNotes(ctx context.Context, request GetNotesRequestObject) (GetNotesResponseObject, error)\n}\n```\nStrictServerInterface represents all server handlers.\n\n```go\ntype UpdateNote204Response struct {\n}\n```\n\n```go\nfunc (response UpdateNote204Response) VisitUpdateNoteResponse(w http.ResponseWriter) error\n```\n\n```go\ntype UpdateNote4XXJSONResponse struct {\n\tBody       ErrorMessage\n\tStatusCode int\n}\n```\n\n```go\nfunc (response UpdateNote4XXJSONResponse) VisitUpdateNoteResponse(w http.ResponseWriter) error\n```\n\n```go\ntype UpdateNoteJSONRequestBody = Note\n```\nUpdateNoteJSONRequestBody defines body for UpdateNote for application/json ContentType.\n\n```go\ntype UpdateNoteRequestObject struct {\n\tBody *UpdateNoteJSONRequestBody\n}\n```\n\n```go\ntype UpdateNoteResponseObject interface {\n\tVisitUpdateNoteResponse(w http.ResponseWriter) error\n}\n```\n\n","path":"github.com/vmkevv/netforenotes/interface/api/openapi","name":"openapi","synopsis":"Package openapi provides primitives to interact with the openapi HTTP API.","isRedistributable":true}
