Files
Frederik Löffert ceb8106914 feature/cache dependencies (#5)
* feat: add test for filesystem caching

* content cache dependencies
cms content loader: context with timeout
go builder version 1.13
2019-10-22 11:14:19 +02:00

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"`
}