comments

package
v0.0.0-...-5e84716 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureClaimToChannelExists

func EnsureClaimToChannelExists(claimID string) error

EnsureClaimToChannelExists ensures that a claim to channel exists for the given claim id

func HasAccessToProtectedChat

func HasAccessToProtectedChat(claimID, channelID string) (bool, error)

HasAccessToProtectedChat checks if a channel has access to chat perk (members only mode)

func HasAccessToProtectedContent

func HasAccessToProtectedContent(claimID, channelID string) (bool, error)

HasAccessToProtectedContent checks if a channel has access to a protected claim

func IsLivestreamClaim

func IsLivestreamClaim(claimID string) (bool, error)

IsLivestreamClaim resolves a claim and checks if it has a source

func IsProtectedContent

func IsProtectedContent(claimID string) (bool, error)

IsProtectedContent resolves a claim and checks if it's a protected claim which would require authentication

Types

type Service

type Service struct{}

Service is the service struct defined for the comment package for rpc service "comment.*"

func (*Service) Abandon

func (c *Service) Abandon(_ *http.Request, args *commentapi.AbandonArgs, reply *commentapi.AbandonResponse) error

Abandon deletes a comment

func (*Service) ByID

func (c *Service) ByID(r *http.Request, args *commentapi.ByIDArgs, reply *commentapi.ByIDResponse) error

ByID returns the comment from the comment id passed in

func (*Service) Create

func (c *Service) Create(r *http.Request, args *commentapi.CreateArgs, reply *commentapi.CreateResponse) error

Create creates a comment

func (*Service) Edit

func (c *Service) Edit(_ *http.Request, args *commentapi.EditArgs, reply *commentapi.EditResponse) error

Edit edits a comment

func (*Service) GetChannelFromCommentID

func (c *Service) GetChannelFromCommentID(_ *http.Request, args *commentapi.ChannelArgs, reply *commentapi.ChannelResponse) error

GetChannelFromCommentID gets the channel info for a specific comment, this is really only used by the sdk

func (*Service) List

func (c *Service) List(r *http.Request, args *commentapi.ListArgs, reply *commentapi.ListResponse) error

List lists comments based on filters and arguments passed. The returned result is dynamic based on the args passed

func (*Service) Pin

func (c *Service) Pin(r *http.Request, args *commentapi.PinArgs, reply *commentapi.PinResponse) error

Pin sets the pinned flag on a comment

func (*Service) SuperChatList

func (c *Service) SuperChatList(r *http.Request, args *commentapi.SuperListArgs, reply *commentapi.SuperListResponse) error

SuperChatList returns comments that are super chat only.

Jump to

Keyboard shortcuts

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