mirror of
https://github.com/foomo/neosproxy.git
synced 2026-11-30 00:31:46 +00:00
* feat: add test for filesystem caching * content cache dependencies cms content loader: context with timeout go builder version 1.13
23 lines
406 B
Go
23 lines
406 B
Go
package cms
|
|
|
|
import (
|
|
"net/http"
|
|
"net/url"
|
|
)
|
|
|
|
// Client for a NEOS cms
|
|
type Client struct {
|
|
// HTTP client used to communicate with NEOS CMS
|
|
client *http.Client
|
|
Endpoint *url.URL
|
|
|
|
CMS Service
|
|
}
|
|
|
|
// Content returned on getContent
|
|
type Content struct {
|
|
HTML string `json:"html"`
|
|
ValidUntil int64 `json:"validUntil"`
|
|
CacheDependencies []string `json:"cacheDependencies"`
|
|
}
|