pkg

package
v0.0.0-...-480b2bf Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

func DoFollow

func DoFollow(client *xrpc.Client, filePath string, w io.Writer) error

func DoFollows

func DoFollows(client *xrpc.Client, handle string, w io.Writer) error

func Int64p

func Int64p(i *int64) int64

func MakeXRPCC

func MakeXRPCC(cCtx *cli.Context) (*xrpc.Client, error)

func ParseCid

func ParseCid(cidUrl *string) (cidDecode.Cid, string, error)

func PrintPost

func PrintPost(p *bsky.FeedDefs_PostView)

func StringPtr

func StringPtr(s string) *string

func Stringp

func Stringp(s *string) string

func Timep

func Timep(s string) time.Time

Types

type Config

type Config struct {
	Bgs      string `json:"bgs"`
	Host     string `json:"host"`
	Handle   string `json:"handle"`
	Password string `json:"password"`

	Verbose bool
	Prefix  string
	// contains filtered or unexported fields
}

func LoadConfig

func LoadConfig(profile string) (*Config, string, error)

type ConfigManager

type ConfigManager interface {
	LoadConfig() (*Config, error)
	SaveConfig(*Config) error
}

type LocalFileConfigManager

type LocalFileConfigManager struct {
	Path string
}

func (*LocalFileConfigManager) LoadConfig

func (m *LocalFileConfigManager) LoadConfig() (*Config, error)

func (*LocalFileConfigManager) SaveConfig

func (m *LocalFileConfigManager) SaveConfig(cfg *Config) error

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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