model

package
v0.0.0-...-a841c06 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body interface {
	IsBody()
}

type Image

type Image struct {
	Name       string           `json:"name"`
	Attributes *ImageAttributes `json:"attributes"`
}

func (Image) GetName

func (this Image) GetName() string

func (Image) IsBody

func (Image) IsBody()

func (Image) IsNamedObject

func (Image) IsNamedObject()

type ImageAttributes

type ImageAttributes struct {
	URL string `json:"url"`
}

type NamedObject

type NamedObject interface {
	IsNamedObject()
	GetName() string
}

type Noop

type Noop struct {
	Noop *string `json:"noop,omitempty"`
}

func (Noop) IsEntity

func (Noop) IsEntity()

type Text

type Text struct {
	Name       string          `json:"name"`
	Attributes *TextAttributes `json:"attributes"`
}

func (Text) GetName

func (this Text) GetName() string

func (Text) IsBody

func (Text) IsBody()

func (Text) IsNamedObject

func (Text) IsNamedObject()

type TextAttributes

type TextAttributes struct {
	Bold *bool   `json:"bold,omitempty"`
	Text *string `json:"text,omitempty"`
}

Jump to

Keyboard shortcuts

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