data

package
v0.0.0-...-3dee431 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BSKY_XRPC_URI = "https://bsky.social/xrpc/"
)

Variables

This section is empty.

Functions

func BskyCreatePost

func BskyCreatePost(content string, created time.Time) (string, error)

func BskyDeletePost

func BskyDeletePost(uri string) error

func CountPosts

func CountPosts(query string) int

func CreatePost

func CreatePost(content string, bskyFed bool)

func DeletePostByTime

func DeletePostByTime(tm time.Time, bskyDel bool)

func GetAtomFeed

func GetAtomFeed() []byte

func GetJsonFeed

func GetJsonFeed() []byte

func GetRssFeed

func GetRssFeed() []byte

func InitDB

func InitDB()

Types

type Post

type Post struct {
	Time    time.Time
	Content []byte
	BskyURI []byte
}

func GetPostByTime

func GetPostByTime(tm time.Time) (Post, bool)

func GetPostOnDate

func GetPostOnDate(dt time.Time) []Post

func GetPosts

func GetPosts(page, count int, query string) []Post

Jump to

Keyboard shortcuts

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