feed_event

package
v0.0.0-...-2f442fc Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFollow

func AddFollow(follow *db.MemoFollow) error

func AddLike

func AddLike(like *db.MemoLike) error

func AddPollVote

func AddPollVote(pollVote *db.MemoPollVote) error

func AddPost

func AddPost(post *db.MemoPost) error

func AddSetName

func AddSetName(setName *db.MemoSetName) error

func AddSetProfile

func AddSetProfile(setProfile *db.MemoSetProfile) error

func AddSetProfilePic

func AddSetProfilePic(setName *db.MemoSetPic) error

func AddTopicFollow

func AddTopicFollow(topicFollow *db.MemoTopicFollow) error

func AttachReputationToEvents

func AttachReputationToEvents(events []*Event) error

Types

type Event

type Event struct {
	FeedEvent        *db.FeedEvent
	Name             string
	SelfPkHash       []byte
	ProfilePic       *db.MemoSetPic
	Post             *profile.Post
	MemoLike         *db.MemoLike
	PollOption       *db.MemoPollOption
	PollVote         *db.MemoPollVote
	SetName          *db.MemoSetName
	SetProfile       *db.MemoSetProfile
	SetProfilePic    *db.MemoSetPic
	UserFollow       *db.MemoFollow
	FollowName       string
	FollowProfilePic *db.MemoSetPic
	TopicFollow      *db.MemoTopicFollow
	Reputation       *rep.Reputation
	FollowReputation *rep.Reputation
	ShowMedia        bool
}

func GetAllEvents

func GetAllEvents(userId uint, pkHash []byte, offset uint) ([]*Event, error)

func GetEventsForUser

func GetEventsForUser(userId uint, pkHash []byte, offset uint) ([]*Event, error)

func GetUserEvents

func GetUserEvents(userId uint, userPkHash []byte, pkHash []byte, offset uint, eventTypes []db.FeedEventType) ([]*Event, error)

func (*Event) GetAddressString

func (e *Event) GetAddressString() string

func (*Event) GetFollowAddressString

func (e *Event) GetFollowAddressString() string

func (*Event) GetFollowName

func (e *Event) GetFollowName() string

func (*Event) GetProfilePicMessage

func (e *Event) GetProfilePicMessage() string

func (*Event) GetProfileText

func (e *Event) GetProfileText() string

func (*Event) GetSetName

func (e *Event) GetSetName() string

func (*Event) GetTopicUrl

func (e *Event) GetTopicUrl() string

func (*Event) GetType

func (e *Event) GetType() string

func (*Event) IsCreatePoll

func (e *Event) IsCreatePoll() bool

func (*Event) IsFollowTopic

func (e *Event) IsFollowTopic() bool

func (*Event) IsFollowUser

func (e *Event) IsFollowUser() bool

func (*Event) IsLike

func (e *Event) IsLike() bool

func (*Event) IsPollVote

func (e *Event) IsPollVote() bool

func (*Event) IsPost

func (e *Event) IsPost() bool

func (*Event) IsReply

func (e *Event) IsReply() bool

func (*Event) IsSetName

func (e *Event) IsSetName() bool

func (*Event) IsSetProfile

func (e *Event) IsSetProfile() bool

func (*Event) IsSetProfilePic

func (e *Event) IsSetProfilePic() bool

func (*Event) IsTopicPost

func (e *Event) IsTopicPost() bool

func (*Event) TimeAgo

func (e *Event) TimeAgo() string

Jump to

Keyboard shortcuts

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