view

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCohortStatData

func GetCohortStatData(memoCohortStats []MemoCohortStat, users bool) []chart.MultiSeries

Types

type MemoCohortStat

type MemoCohortStat struct {
	Date     time.Time
	Cohort   time.Time
	NumPosts int
	NumUsers int
}

type Profile

type Profile struct {
	PkHash       []byte
	NumPosts     int
	FirstPost    time.Time
	LastPost     time.Time
	NumFollowers int
}

type Thread

type Thread struct {
	Topic       string
	Message     string
	RootTxHash  []byte
	NumReplies  int
	RecentReply time.Time
}

func (Thread) GetRecentTimeAgo

func (t Thread) GetRecentTimeAgo() string

func (Thread) GetTransactionHashString

func (t Thread) GetTransactionHashString() string

func (Thread) GetUrlEncodedTopic

func (t Thread) GetUrlEncodedTopic() string

type Topic

type Topic struct {
	Name         string
	RecentTime   time.Time
	CountPosts   int
	CountFollows int
	UnreadPosts  bool
}

func (Topic) GetTimeAgo

func (t Topic) GetTimeAgo() string

func (Topic) GetUrlEncoded

func (t Topic) GetUrlEncoded() string

type TopicOrderType

type TopicOrderType int
const (
	TopicOrderTypeRecent TopicOrderType = iota
	TopicOrderTypeFollowers
	TopicOrderTypePosts
)

type UserDateStat

type UserDateStat struct {
	Date     time.Time
	NumUsers int
}

type UserStat

type UserStat struct {
	PkHash       []byte
	NumPosts     int
	NumFollowers int
	FirstPost    time.Time
	LastPost     time.Time
}

Jump to

Keyboard shortcuts

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