agreements

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL