wip: add api auth and /resume endpoint
This commit is contained in:
parent
22e2f6005f
commit
aaec8ec08d
23 changed files with 1244 additions and 271 deletions
8
pkg/logger/logger.go
Normal file
8
pkg/logger/logger.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package logger
|
||||
|
||||
type Logger interface {
|
||||
Debug(msg string, params map[string]interface{})
|
||||
Info(msg string, params map[string]interface{})
|
||||
Warn(msg string, params map[string]interface{})
|
||||
Error(msg string, params map[string]interface{})
|
||||
}
|
||||
35
pkg/logger/logrus.go
Normal file
35
pkg/logger/logrus.go
Normal 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...)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue