dendrite.daemon/core/models/custom_frontmatter.go
Kristian f1bc87e3ad
feat: add cfm model and migration (#43)
* custom fe matter migration

* add custom_fe_matter
2026-05-30 13:12:22 +02:00

27 lines
447 B
Go

package models
type CustomFronMatter struct {
nodeID string
key string
value string
}
func NewCustomFrontMatter(nodeID, key, value string) *CustomFronMatter {
return &CustomFronMatter{
nodeID: nodeID,
key: key,
value: value,
}
}
func (cfm *CustomFronMatter) NodeID() string {
return cfm.nodeID
}
func (cfm *CustomFronMatter) Key() string {
return cfm.key
}
func (cfm *CustomFronMatter) Value() string {
return cfm.value
}