Documentation
¶
Overview ¶
Package note provides models for generating simple messages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
uuid.Identify
// Summary of the message content
Title string `json:"title,omitempty" jsonschema:"title=Title"`
// Details of what exactly this message wants to communicate.
Content string `json:"content" jsonschema:"title=Content"`
// Any additional semi-structured data that might be useful.
Meta cbc.Meta `json:"meta,omitempty" jsonschema:"title=Meta Data"`
}
Message represents a simple message object with a title and some content meant.
func (Message) JSONSchemaExtend ¶ added in v0.37.0
func (Message) JSONSchemaExtend(s *jsonschema.Schema)
JSONSchemaExtend adds examples to the JSON Schema.
Click to show internal directories.
Click to hide internal directories.