bskyurl

package
v0.0.0-...-51444de Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	Profile string
	Rkey    string
}

func (*Post) GetCollection

func (p *Post) GetCollection() string

func (*Post) GetProfile

func (p *Post) GetProfile() string

func (*Post) GetRKey

func (p *Post) GetRKey() string

type Profile

type Profile struct {
	Profile string
}

func (*Profile) GetProfile

func (p *Profile) GetProfile() string

type SomeRecord

type SomeRecord struct {
	Profile    string
	Collection string
	Rkey       string
}

func (*SomeRecord) GetCollection

func (r *SomeRecord) GetCollection() string

func (*SomeRecord) GetProfile

func (r *SomeRecord) GetProfile() string

func (*SomeRecord) GetRKey

func (r *SomeRecord) GetRKey() string

type Target

type Target interface{}

func DetermineTarget

func DetermineTarget(s string) (Target, error)

DetermineTarget parses a string as a Bluesky-related URL. It recognizes the following inputs:

type TargetRecord

type TargetRecord interface {
	TargetWithProfile
	GetCollection() string
	GetRKey() string
}

type TargetWithProfile

type TargetWithProfile interface {
	GetProfile() string
}

Jump to

Keyboard shortcuts

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