api

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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentsHandler added in v0.10.0

func CommentsHandler(c *fiber.Ctx) error

func GetChannel

func GetChannel(channel string, getFollowers bool) types.Channel

func GetChannelClaims added in v0.10.0

func GetChannelClaims(page int, channelId string) []types.Claim

func GetChannelFollowers

func GetChannelFollowers(claimId string) (int64, error)

func GetClaim added in v0.10.0

func GetClaim(channel string, video string, claimId string) (types.Claim, error)

func GetCommentLikeDislikes

func GetCommentLikeDislikes(commentIds []string) map[string][]int64

func GetComments

func GetComments(claimId string, channelId string, channelName string, pageSize int, page int) []types.Comment

func GetFrontpageVideos

func GetFrontpageVideos() []types.Claim

func GetLikeDislike

func GetLikeDislike(claimId string) []int64

func GetVideoStream

func GetVideoStream(video string) string

func GetVideoStreamType added in v0.10.0

func GetVideoStreamType(url string) string

func GetViews added in v0.10.0

func GetViews(claimId string) int64

func NewUser

func NewUser() string

func ProcessClaim added in v0.10.0

func ProcessClaim(claimData gjson.Result) types.Claim
func Search(query string, page int, claimType string, nsfw bool, relatedTo string) ([]interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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