Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DbConn *gorm.DB = nil
conn is a singleton object that store db connection
Functions ¶
func CreateStatMsg ¶
func InitDatabase ¶
InitDatabase is a function that initializes database connection with provided connection information
Types ¶
type NewsData ¶
func GetLastNews ¶
func GetLastNews() NewsData
func GetRecentNews ¶
func GetRecentNews() []NewsData
Click to show internal directories.
Click to hide internal directories.