Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FS embed.FS
Functions ¶
This section is empty.
Types ¶
type Agreement ¶
type Agreement struct {
Meta AgreementMeta `json:"meta"`
Body string `json:"body"`
BodyHTML string `json:"bodyHtml"`
BodyMarkdown string `json:"bodyMarkdown"`
}
func Agreements ¶
func Agreements() []*Agreement
type AgreementMeta ¶
type AgreementMeta struct {
Codename string `json:"codename" toml:"codename" validate:"required"`
Title string `json:"title" toml:"title" validate:"required"`
Description string `json:"description" toml:"description"`
Version string `json:"version" toml:"version" validate:"required"`
Type string `json:"type" toml:"type" validate:"oneof=license terms_of_use contract"` // e.g. "license", "terms_of_use", "contract"
IssuedBy string `json:"issuedBy" toml:"issuedBy" validate:"required"`
CreatedAt time.Time `json:"createdAt" toml:"createdAt" validate:"required"` // ISO 8601 format
}
Click to show internal directories.
Click to hide internal directories.