bluesky

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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 New

func New(path string, dir string, logger *zerolog.Logger) (*Bluesky, error)

New creates new Bluesky instance.

func (*Bluesky) BaseDir

func (cfg *Bluesky) BaseDir() string

BaseDir method returns base directory.

func (*Bluesky) CreateSession

func (cfg *Bluesky) CreateSession(ctx context.Context) error

CreateSession method makes XRPC instance and creates/refreshes session.

func (*Bluesky) Logger

func (cfg *Bluesky) Logger() *zerolog.Logger

Logger method returns zerolog.Logger instance.

func (*Bluesky) PostMessage

func (cfg *Bluesky) PostMessage(ctx context.Context, msg string) (string, error)

func (*Bluesky) ShowProfile

func (cfg *Bluesky) ShowProfile(ctx context.Context, actor string) (*bsky.ActorDefs_ProfileViewDetailed, error)

Jump to

Keyboard shortcuts

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