crossbell

package
v0.5.22 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWorker

func NewWorker(config *config.Module) (engine.Worker, error)

NewWorker creates a new Lens worker.

Types

type CharacterURIContent

type CharacterURIContent struct {
	Avatars           []string        `json:"avatars"`
	Bio               string          `json:"bio"`
	ConnectedAccounts json.RawMessage `json:"connected_accounts"`
	Name              string          `json:"name"`
}

type NoteContent

type NoteContent struct {
	Type          string                  `json:"type"`
	Tags          []string                `json:"tags"`
	Authors       []string                `json:"authors"`
	Title         string                  `json:"title"`
	Content       string                  `json:"content"`
	Attachments   []NoteContentAttachment `json:"attachments"`
	Sources       []string                `json:"sources"`
	ExternalUrls  []string                `json:"external_urls"`
	DatePublished time.Time               `json:"date_published"`
}

type NoteContentAttachment

type NoteContentAttachment struct {
	Name        string `json:"name"`
	Address     string `json:"address"`
	MimeType    string `json:"mime_type"`
	SizeInBytes int    `json:"size_in_bytes"`
	Alt         string `json:"alt"`
	Width       int    `json:"width"`
}

type ProfileURIContent

type ProfileURIContent struct {
	ConnectedAccounts json.RawMessage `json:"connected_accounts"`
	ConnectedAvatars  []string        `json:"connected_avatars"`
	Name              string          `json:"name"`
	Bio               string          `json:"bio"`
	Type              string          `json:"type"`
}

Jump to

Keyboard shortcuts

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