Documentation ¶
Index ¶
- func ErrorLog(args ...interface{})
- func ErrorLogf(format string, args ...interface{})
- func FataLogf(format string, args ...interface{})
- func FatalLog(args ...interface{})
- func GetDB() (db *gorm.DB, err error)
- func InfoLog(args ...interface{})
- func InfoLogf(format string, args ...interface{})
- func LogFlush()
- func SetConnection(user string, pass string, host string, port string, name string, log bool)
- func SetLogger(debugLog bool)
- func WarningLog(args ...interface{})
- func WarningLogf(format string, args ...interface{})
- type Backoff
- type BackoffMethod
- type Connection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConnection ¶
func WarningLog ¶
func WarningLog(args ...interface{})
func WarningLogf ¶
func WarningLogf(format string, args ...interface{})
Types ¶
type Backoff ¶
type Backoff struct {
// contains filtered or unexported fields
}
func NewBackoff ¶
func (*Backoff) AttemptAllowed ¶
type BackoffMethod ¶
type BackoffMethod uint
const ( NoAttempt BackoffMethod = 0 ConstantBO BackoffMethod = 1 GeometricBO BackoffMethod = 2 ListBO BackoffMethod = 3 )
Click to show internal directories.
Click to hide internal directories.