package dockerdocs

import "time"

type Page struct {
	Title       string       `json:"title"`
	Description string       `json:"description,omitempty"`
	Content     string       `json:"content,omitempty"`
	URL         string       `json:"url"`
	Sections    []*Section   `json:"sections,omitempty"`
	CodeBlocks  []*CodeBlock `json:"code_blocks,omitempty"`
	Links       []string     `json:"links,omitempty"`
	FetchedAt   time.Time    `json:"fetched_at"`
}

type Section struct {
	ID      string `json:"id"`
	Title   string `json:"title"`
	Content string `json:"content,omitempty"`
	DocURL  string `json:"doc_url"`
}

type CodeBlock struct {
	Language string `json:"language,omitempty"`
	Code     string `json:"code"`
}
