Files
neosproxy/client/cms/interfaces.go
T
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

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)
}