Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostEntity ¶
type PostEntity struct { Id string `json:"id"` Text string `json:"text"` User *UserEntity `json:"user"` CreatedAt time.Time `json:"created_at"` }
type TimelineHeap ¶
type TimelineHeap []*TimelineItem
func (TimelineHeap) Len ¶
func (h TimelineHeap) Len() int
func (TimelineHeap) Less ¶
func (h TimelineHeap) Less(i, j int) bool
func (*TimelineHeap) Pop ¶
func (h *TimelineHeap) Pop() interface{}
func (*TimelineHeap) Push ¶
func (h *TimelineHeap) Push(x interface{})
func (TimelineHeap) Swap ¶
func (h TimelineHeap) Swap(i, j int)
type TimelineItem ¶
func MakeTimelineItem ¶
func MakeTimelineItem(post *Post) *TimelineItem
Click to show internal directories.
Click to hide internal directories.