Documentation
¶
Index ¶
- Constants
- type CardCanvasTheme
- type CardContentElementTheme
- type CardContentFace
- type CardContentNode
- type CardContentNodeBase
- type CardContentNodeList
- type CardFaceTheme
- type CardImageNode
- type CardNodeContent
- type CardPollNode
- type CardPollNodeOption
- type CardTextBoxNode
- type CardTextboxElementDecoration
- type CardTextboxElementTextHighlight
- type CardTextboxElementTheme
- type CardTextboxNewlineNode
- type CardTextboxNode
- type CardTextboxNodeList
- type CardTextboxTextNode
- type CardTitleNode
- type NullUserPermissions
- type ResourceVisibilities
- type ResourceVisibility
- func (visibility ResourceVisibility) MarshalText() ([]byte, error)
- func (visibility *ResourceVisibility) Scan(src any) error
- func (visibility ResourceVisibility) String() string
- func (visibility *ResourceVisibility) UnmarshalEnum(val byte) error
- func (visibility *ResourceVisibility) UnmarshalText(data []byte) error
- func (visibility ResourceVisibility) Value() (driver.Value, error)
- type UserPermissions
Constants ¶
View Source
const ( CardTextboxElementDecorationUnderline = CardTextboxElementDecoration("underline") CardTextboxElementDecorationStrikethrough = CardTextboxElementDecoration("strikethrough") )
View Source
const ( ResourceVisibilityPrivate = iota ResourceVisibilityHidden ResourceVisibilityPublic )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CardCanvasTheme ¶
type CardCanvasTheme struct {
CardContentElementTheme
OutlineColor string `json:"outline_color,omitempty"`
}
type CardContentElementTheme ¶
type CardContentFace ¶
type CardContentFace struct {
Theme *CardFaceTheme `json:"theme,omitempty"`
Content CardContentNodeList `json:"content"`
}
type CardContentNode ¶
type CardContentNode interface {
CardContentNodeType() string
}
type CardContentNodeBase ¶
type CardContentNodeBase struct {
Type string `json:"type"`
}
type CardContentNodeList ¶
type CardContentNodeList []CardContentNode
func (CardContentNodeList) MarshalJSON ¶
func (list CardContentNodeList) MarshalJSON() ([]byte, error)
func (*CardContentNodeList) UnmarshalJSON ¶
func (list *CardContentNodeList) UnmarshalJSON(data []byte) (err error)
type CardFaceTheme ¶
type CardFaceTheme struct {
Card *CardCanvasTheme `json:"card,omitempty"`
Interactives *CardContentElementTheme `json:"interactives,omitempty"`
}
type CardImageNode ¶
type CardImageNode struct {
CardContentNodeBase
MediaID string `json:"media_id,omitempty"`
}
func (*CardImageNode) CardContentNodeType ¶
func (image *CardImageNode) CardContentNodeType() string
type CardNodeContent ¶
type CardNodeContent struct {
Front CardContentFace `json:"front"`
Back CardContentFace `json:"back"`
}
func (*CardNodeContent) Scan ¶
func (perms *CardNodeContent) Scan(src any) error
type CardPollNode ¶
type CardPollNode struct {
CardContentNodeBase
IsQuiz bool `json:"is_quiz,omitempty"`
Content []CardPollNodeOption `json:"content"`
}
func (*CardPollNode) CardContentNodeType ¶
func (poll *CardPollNode) CardContentNodeType() string
func (*CardPollNode) IsReallyQuiz ¶
func (poll *CardPollNode) IsReallyQuiz() bool
type CardPollNodeOption ¶
type CardTextBoxNode ¶
type CardTextBoxNode struct {
CardContentNodeBase
Content CardTextboxNodeList `json:"content"`
}
func (*CardTextBoxNode) CardContentNodeType ¶
func (elem *CardTextBoxNode) CardContentNodeType() string
type CardTextboxElementDecoration ¶
type CardTextboxElementDecoration string
type CardTextboxElementTheme ¶
type CardTextboxElementTheme struct {
Highlight *CardTextboxElementTextHighlight `json:"highlight,omitempty"`
Bold bool `json:"bold,omitempty"`
Italic bool `json:"italic,omitempty"`
Decoration CardTextboxElementDecoration `json:"decoration,omitempty"`
}
type CardTextboxNewlineNode ¶
type CardTextboxNewlineNode struct {
CardContentNodeBase
}
func (*CardTextboxNewlineNode) CardTextboxNodeType ¶
func (newline *CardTextboxNewlineNode) CardTextboxNodeType() string
type CardTextboxNode ¶
type CardTextboxNode interface {
CardTextboxNodeType() string
}
type CardTextboxNodeList ¶
type CardTextboxNodeList []CardTextboxNode
func (CardTextboxNodeList) MarshalJSON ¶
func (list CardTextboxNodeList) MarshalJSON() ([]byte, error)
func (*CardTextboxNodeList) UnmarshalJSON ¶
func (list *CardTextboxNodeList) UnmarshalJSON(data []byte) (err error)
type CardTextboxTextNode ¶
type CardTextboxTextNode struct {
CardContentNodeBase
Content string `json:"content"`
Theme *CardTextboxElementTheme `json:"theme,omitempty"`
}
func (*CardTextboxTextNode) CardTextboxNodeType ¶
func (text *CardTextboxTextNode) CardTextboxNodeType() string
type CardTitleNode ¶
type CardTitleNode struct {
CardContentNodeBase
Content string `json:"content"`
}
func (*CardTitleNode) CardContentNodeType ¶
func (elem *CardTitleNode) CardContentNodeType() string
type NullUserPermissions ¶
type NullUserPermissions struct {
Permissions UserPermissions
Valid bool
}
func (*NullUserPermissions) Scan ¶
func (perms *NullUserPermissions) Scan(src any) error
type ResourceVisibilities ¶
type ResourceVisibilities []ResourceVisibility
func (*ResourceVisibilities) Scan ¶
func (rvset *ResourceVisibilities) Scan(src any) error
type ResourceVisibility ¶
type ResourceVisibility byte
func (ResourceVisibility) MarshalText ¶
func (visibility ResourceVisibility) MarshalText() ([]byte, error)
func (*ResourceVisibility) Scan ¶
func (visibility *ResourceVisibility) Scan(src any) error
func (ResourceVisibility) String ¶
func (visibility ResourceVisibility) String() string
func (*ResourceVisibility) UnmarshalEnum ¶
func (visibility *ResourceVisibility) UnmarshalEnum(val byte) error
func (*ResourceVisibility) UnmarshalText ¶
func (visibility *ResourceVisibility) UnmarshalText(data []byte) error
type UserPermissions ¶
type UserPermissions struct {
TeamMember bool `json:"team_member,omitempty"`
ContentEdit bool `json:"content_edit,omitempty"`
}
func (*UserPermissions) Scan ¶
func (perms *UserPermissions) Scan(src any) error
Click to show internal directories.
Click to hide internal directories.