Documentation ¶
Index ¶
Constants ¶
View Source
const Author1Content = `{
"@id": "/authors/1.jsonld",
"name": "Kévin"
}`
Author1Content contains the raw JSON of /authors/1.jsonld
View Source
const BooksContent = `` /* 208-byte string literal not displayed */
BooksContent contains the raw JSON of /books.jsonld
View Source
const OAAuthor1Content = `{
"id": 1,
"name": "Kévin"
}`
OAAuthor1Content contains the raw JSON of /authors/1
View Source
const OABooksContent = `{
"member": [
1,
2
]
}`
OABooksContent contains the raw JSON of /books
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONLDHandler ¶
type JSONLDHandler struct { }
JSONLDHandler provides a dummy JSON-LD API
func (*JSONLDHandler) ServeHTTP ¶
func (h *JSONLDHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
type OpenAPIHandler ¶
type OpenAPIHandler struct { }
OpenAPIHandler provides a dummy API documented with OpenAPI
func (*OpenAPIHandler) ServeHTTP ¶
func (h *OpenAPIHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.