Documentation ¶
Index ¶
Constants ¶
View Source
const ( Reset = "\033[0m" Red = "\033[31m" Green = "\033[32m" Yellow = "\033[33m" Blue = "\033[34m" Magenta = "\033[35m" Cyan = "\033[36m" White = "\033[37m" BlueBold = "\033[34;1m" MagentaBold = "\033[35;1m" RedBold = "\033[31;1m" YellowBold = "\033[33;1m" )
Colors
Variables ¶
View Source
var MusicDB *gorm.DB
MusicDB 音乐缓存数据库入口
Functions ¶
func InitLogger ¶ added in v2.4.0
Types ¶
type LogFormatter ¶ added in v2.4.0
type LogFormatter struct{}
type LogInterface ¶ added in v2.4.0
type LogInterface interface { Info(context.Context, string, ...interface{}) Warn(context.Context, string, ...interface{}) Error(context.Context, string, ...interface{}) Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error) LogMode(level logger.LogLevel) logger.Interface }
type RecognizeResultData ¶ added in v2.4.0
type SongInfo ¶ added in v2.3.0
type SongInfo struct { gorm.Model MusicID int SongName string SongArtists string SongAlbum string FileExt string MusicSize int PicSize int EmbPicSize int BitRate int Duration int FileID string ThumbFileID string FromUserID int64 FromUserName string FromChatID int64 FromChatName string }
SongInfo 歌曲信息
Click to show internal directories.
Click to hide internal directories.