models

package
v0.0.0-...-3141384 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Embed

type Embed struct {
	Link           Link
	Images         []Image
	UploadedImages []lexutil.LexBlob
}

Embed represents embedded content in a post

type Facet

type Facet struct {
	Type  FacetType
	Value string
	Text  string
}

Facet represents rich text features in a post

type FacetType

type FacetType int

FacetType represents the type of a facet

const (
	FacetLink FacetType = iota + 1
	FacetMention
	FacetTag
)

func (FacetType) String

func (f FacetType) String() string

String returns the string representation of a FacetType

type Image

type Image struct {
	Title string
	Data  []byte
}

Image represents an image to be uploaded to Bluesky

type Link struct {
	Title       string
	Uri         url.URL
	Description string
	Thumb       lexutil.LexBlob
}

Link represents an external link in a post

type UploadedImage

type UploadedImage struct {
	*lexutil.LexBlob
	Image
}

Jump to

Keyboard shortcuts

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