Documentation
¶
Overview ¶
Package ltbsky is a lightweight posting client for Bluesky.
It allows bots or other automated agents to create posts with text, images, and language tags.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A Client for interacting with the Bluesky server.
type HttpClient ¶ added in v0.4.0
type PostBuilder ¶
type PostBuilder struct {
// contains filtered or unexported fields
}
PostBuilder is used to compose a post before sending it to the server.
func NewPostBuilder ¶
func NewPostBuilder(content string) *PostBuilder
NewPostBuilder creates a new PostBuilder with the initial content.
func (*PostBuilder) AddContent ¶
func (pb *PostBuilder) AddContent(content string) *PostBuilder
AddContent appends text content to the post.
func (*PostBuilder) AddImageFromBytes ¶
func (pb *PostBuilder) AddImageFromBytes(data []byte, alt string) *PostBuilder
AddImageFromBytes adds an image to the post from memory.
func (*PostBuilder) AddImageFromPath ¶
func (pb *PostBuilder) AddImageFromPath(path string, alt string) *PostBuilder
AddImageFromPath adds an image to the post from disk.
func (*PostBuilder) AddLang ¶
func (pb *PostBuilder) AddLang(lang string) *PostBuilder
AddLang adds a language code to the post.
Click to show internal directories.
Click to hide internal directories.