utils

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeHMAC

func EncodeHMAC(data string) string

func FormatDuration

func FormatDuration(seconds int64) string

func HandleError

func HandleError(c *fiber.Ctx, err error) error

func LbryTo

func LbryTo(link string, linkType string) string

func NewClient added in v0.10.2

func NewClient() *retryablehttp.Client

func ProcessMarkdown added in v0.10.0

func ProcessMarkdown(text string) template.HTML

func ProcessText

func ProcessText(text string, newline bool) string

func ReplaceStickersAndEmotes added in v0.10.0

func ReplaceStickersAndEmotes(text string) string

func UrlEncode

func UrlEncode(link string) (string, error)

func VerifyHMAC

func VerifyHMAC(data string, mac 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