world

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	MarkdownMessageSchema = "https://schema.concrnt.world/m/markdown.json"
	MediaMessageSchema    = "https://schema.concrnt.world/m/media.json"
	ReplyMessageSchema    = "https://schema.concrnt.world/m/reply.json"
	RerouteMessageSchema  = "https://schema.concrnt.world/m/reroute.json"

	LikeAssociationSchema     = "https://schema.concrnt.world/a/like.json"
	MentionAssociationSchema  = "https://schema.concrnt.world/a/mention.json"
	ReplyAssociationSchema    = "https://schema.concrnt.world/a/reply.json"
	RerouteAssociationSchema  = "https://schema.concrnt.world/a/reroute.json"
	ReactionAssociationSchema = "https://schema.concrnt.world/a/reaction.json"

	ProfileSchema = "https://schema.concrnt.world/p/main.json"
)
View Source
const (
	UserHomeStream   = "world.concrnt.t-home"
	UserNotifyStream = "world.concrnt.t-notify"
	UserAssocStream  = "world.concrnt.t-assoc"
	UserApStream     = "world.concrnt.t-ap"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommunityTimeline added in v0.4.5

type CommunityTimeline struct {
	Name        string `json:"name"`
	Shortname   string `json:"shortname"`
	Description string `json:"description"`
	Icon        string `json:"icon"`
	Banner      string `json:"banner"`
}

type Emoji

type Emoji struct {
	ImageURL string `json:"imageURL"`
}

type LikeAssociation

type LikeAssociation struct {
	ProfileOverride *ProfileOverride `json:"profileOverride"`
}

type MarkdownMessage

type MarkdownMessage struct {
	Body            string            `json:"body"`
	Emojis          *map[string]Emoji `json:"emojis,omitempty"`
	ProfileOverride *ProfileOverride  `json:"profileOverride,omitempty"`
}

type Media

type Media struct {
	MediaURL     string `json:"mediaURL"`
	MediaType    string `json:"mediaType"`
	ThumbnailURL string `json:"thumbnailURL,omitempty"`
	Blurhash     string `json:"blurhash,omitempty"`
	Flag         string `json:"flag,omitempty"`
}

type MediaMessage

type MediaMessage struct {
	Body            string            `json:"body"`
	Emojis          *map[string]Emoji `json:"emojis,omitempty"`
	Medias          *[]Media          `json:"medias,omitempty"`
	ProfileOverride *ProfileOverride  `json:"profileOverride,omitempty"`
}

type Profile

type Profile struct {
	Username    string    `json:"username"`
	Avatar      string    `json:"avatar"`
	Description string    `json:"description"`
	Banner      string    `json:"banner"`
	Subprofiles *[]string `json:"subprofiles"`
}

type ProfileOverride

type ProfileOverride struct {
	Username    string `json:"username,omitempty"`
	Avatar      string `json:"avatar,omitempty"`
	Description string `json:"description,omitempty"`
	Link        string `json:"link,omitempty"`
	CharacterID string `json:"characterID,omitempty"`
}

type ReactionAssociation

type ReactionAssociation struct {
	ImageURL        string           `json:"imageUrl"`
	Shortcode       string           `json:"shortcode"`
	ProfileOverride *ProfileOverride `json:"profileOverride"`
}

type ReplyAssociation

type ReplyAssociation struct {
	MessageID       string           `json:"messageId"`
	MessageAuthor   string           `json:"messageAuthor"`
	ProfileOverride *ProfileOverride `json:"profileOverride"`
}

type ReplyMessage

type ReplyMessage struct {
	ReplyToMessageID     string            `json:"replyToMessageId"`
	ReplyToMessageAuthor string            `json:"replyToMessageAuthor"`
	Body                 string            `json:"body"`
	Emojis               *map[string]Emoji `json:"emojis"`
	ProfileOverride      *ProfileOverride  `json:"profileOverride"`
}

type RerouteAssociation

type RerouteAssociation struct {
	MessageID       string           `json:"messageId"`
	MessageAuthor   string           `json:"messageAuthor"`
	ProfileOverride *ProfileOverride `json:"profileOverride"`
}

type RerouteMessage

type RerouteMessage struct {
	RerouteMessageID     string            `json:"rerouteMessageId"`
	RerouteMessageAuthor string            `json:"rerouteMessageAuthor"`
	Body                 string            `json:"body"`
	Emojis               *map[string]Emoji `json:"emojis"`
	ProfileOverride      *ProfileOverride  `json:"profileOverride"`
}

type WhisperPolicy

type WhisperPolicy struct {
	Participants []string `json:"participants"`
}

Jump to

Keyboard shortcuts

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