utils

package
v0.0.0-...-e0ac650 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: AGPL-3.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TrimRegex *regexp.Regexp
)

Functions

func CalcNewInterval

func CalcNewInterval(work *commonTypes.WorkDispatched, feeds []commonTypes.RawFeed) time.Duration

func FeedOnChain

func FeedOnChain(work *commonTypes.OnChainRequest) (string, string, int64, int64, error)

func GetCrossbellHandleFromID

func GetCrossbellHandleFromID(characterID string) (string, error)

func HttpRequest

func HttpRequest(url string, withProxy bool) ([]byte, error)

func ParseAuthors

func ParseAuthors(authors []*gofeed.Person) []string

func RSSFeedRequest

func RSSFeedRequest(url string, withProxy bool) (*gofeed.Feed, uint, error)

func RSSFeedRequestJson

func RSSFeedRequestJson(url string, withProxy bool) (*commonTypes.FeedWithExtra, uint, error)

func StringPointerOmitEmpty

func StringPointerOmitEmpty(str string) *string

func UploadAllMedia

func UploadAllMedia(mediaUris []string) []types.Media

func UploadBytesToIPFS

func UploadBytesToIPFS(data []byte, filename string) (string, uint, error)

func UploadOneMedia

func UploadOneMedia(mediaUri string) (*types.Media, error)

func UploadURLToIPFS

func UploadURLToIPFS(targetUrl string, withProxy bool) (string, string, uint, string, string, error)

func UploadVideoToIPFS

func UploadVideoToIPFS(videoUrl string) (string, uint, error)

func ValidateUri

func ValidateUri(uri string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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