Documentation
¶
Index ¶
- Constants
- type Bluesky
- func (cfg *Bluesky) BaseDir() string
- func (cfg *Bluesky) CreateSession(ctx context.Context) error
- func (cfg *Bluesky) Export(path string) error
- func (cfg *Bluesky) Logger() *zap.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 ¶
View Source
const (
DefaltHostName = "bsky.social"
)
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 Register ¶ added in v0.4.0
func Register(ctx context.Context, server, handle, password, baseDir string, logger *log.ZapEventLogger) (*Bluesky, error)
Register functions registers application to mastodon server.
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.