mirror of
https://github.com/foomo/neosproxy.git
synced 2026-11-30 08:41:46 +00:00
* feat: add test for filesystem caching * content cache dependencies cms content loader: context with timeout go builder version 1.13
22 lines
710 B
Go
22 lines
710 B
Go
package cms
|
|
|
|
import "context"
|
|
|
|
//-----------------------------------------------------------------------------
|
|
// ~ INTERFACES
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// Service to load
|
|
type Service interface {
|
|
GetContent(id string, dimension string, workspace string, ctx context.Context) (content Content, e error)
|
|
|
|
// GetRepo(id string, dimension string) (html string, e error)
|
|
// GetImage(id string, dimension string) (html string, e error)
|
|
// GetAsset(id string, dimension string) (html string, e error)
|
|
}
|
|
|
|
// ContentLoader interface
|
|
type ContentLoader interface {
|
|
GetContent(id, dimension, workspace string, ctx context.Context) (content Content, e error)
|
|
}
|