reactions

package
v1.0.0-beta Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reaction

type Reaction struct {
	Type      string      `json:"type"`
	Hash      string      `json:"hash"`
	Reactor   *users.User `json:"reactor"`
	Timestamp uint64      `json:"timestamp"`
	CastHash  string      `json:"castHash"`
}

type ReactionService

type ReactionService struct {
	// contains filtered or unexported fields
}

func NewReactionService

func NewReactionService(account *account.AccountService) *ReactionService

func (*ReactionService) GetReactionsByCastHash

func (r *ReactionService) GetReactionsByCastHash(hash string, limit int, cursor string) ([]Reaction, string, error)

func (*ReactionService) GetRecastersByCastHash

func (r *ReactionService) GetRecastersByCastHash(hash string, limit int, cursor string) ([]users.User, string, error)

func (*ReactionService) GetUserReactions

func (r *ReactionService) GetUserReactions(fid uint64) ([]Reaction, string, error)

func (*ReactionService) ReactToCast

func (r *ReactionService) ReactToCast(hash string) (*Reaction, error)

func (*ReactionService) RecastCast

func (r *ReactionService) RecastCast(hash string) (string, error)

func (*ReactionService) UnreactToCast

func (r *ReactionService) UnreactToCast(hash string) error

func (*ReactionService) UnrecastCast

func (r *ReactionService) UnrecastCast(hash string) error

Jump to

Keyboard shortcuts

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