Documentation
¶
Index ¶
- type Bluesky
- func (cfg *Bluesky) BaseDir() string
- func (cfg *Bluesky) CreateSession(ctx context.Context) error
- func (cfg *Bluesky) Logger() *zerolog.Logger
- func (cfg *Bluesky) PostMessage(ctx context.Context, msg *Message) (string, error)
- func (cfg *Bluesky) Profile(ctx context.Context, actor string) (*bsky.ActorDefs_ProfileViewDetailed, error)
- func (cfg *Bluesky) ShowProfile(ctx context.Context, actor string, jsonFlag bool, w io.Writer) error
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bluesky ¶
type Bluesky struct {
Host string `json:"host"`
Handle string `json:"handle"`
Password string `json:"password"`
// contains filtered or unexported fields
}
Bluesky is configuration for Bluesky
func (*Bluesky) CreateSession ¶
CreateSession method makes XRPC instance and creates/refreshes session.
func (*Bluesky) PostMessage ¶
PostMessage method posts message and image files to Bluesky.
Click to show internal directories.
Click to hide internal directories.