~evanj/cms

ref: 37b75b6fd4e482657f38cb98668b78df49c66971 cms/internal/m/content/content.go -rw-r--r-- 301 bytes
37b75b6fEvan M Jones TEST(cache): Attempting to cache at controller level. 8 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package content

import (
	"git.sr.ht/~evanj/cms/internal/m/contenttype"
	"git.sr.ht/~evanj/cms/internal/m/value"
)

type Content interface {
	ID() string
	Type() contenttype.ContentType
	Values() []value.Value
	ValueByName(name string) (value.Value, bool)
	MustValueByName(name string) value.Value
}