wip: add api auth and /resume endpoint

This commit is contained in:
cătălin 2023-12-04 22:13:37 +01:00
commit aaec8ec08d
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2
23 changed files with 1244 additions and 271 deletions

35
pkg/logger/logrus.go Normal file
View file

@ -0,0 +1,35 @@
package logger
import "github.com/sirupsen/logrus"
func Debug(msg ...interface{}) {
logrus.Debug(msg...)
}
func Debugf(format string, args ...interface{}) {
logrus.Debugf(format, args...)
}
func Info(msg ...interface{}) {
logrus.Info(msg...)
}
func Infof(format string, args ...interface{}) {
logrus.Infof(format, args...)
}
func Warn(msg ...interface{}) {
logrus.Warn(msg...)
}
func Warnf(format string, args ...interface{}) {
logrus.Warnf(format, args...)
}
func Error(msg ...interface{}) {
logrus.Error(msg...)
}
func Errorf(format string, args ...interface{}) {
logrus.Errorf(format, args...)
}