Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMessage ¶
func NewMessage(p NewMessageParams) (id int64, err error)
NewMessage inserts a message record and returns last insert id.
Types ¶
type MessageItem ¶
type MessageItem struct { Id int64 FromName string ToName string CreatedAt time.Time Message string }
func FindMessages ¶
func FindMessages() (items []MessageItem, err error)
FindMessages returns Messages slice.
type NewMessageParams ¶
type NewMessageParams struct {
From, To, Message, CreatedAt string
}
type RankingItem ¶
func FindRanking ¶
func FindRanking(ym string) (items []RankingItem, err error)
FindRanking returns ranking slice. Parameter 'ym' should be as `201608`
Click to show internal directories.
Click to hide internal directories.