Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Viper is the global instace of the `viper.Viper`. Viper = viper.New() // Logger is the global instace of the `zerolog.Logger`. Logger = zerolog.New(os.Stderr).With().Timestamp().Logger() // Air is the global instace of the `air.Air`. Air = air.New() // Context is the global instance of the `context.Context`. Context context.Context // Cron is the global instance of the `cron.Cron`. Cron *cron.Cron )
View Source
var ErrRetryable = errors.New("retryable")
ErrRetryable means an operation is retryable.
View Source
var TZAsiaShanghai = time.FixedZone("Asia/Shanghai", 8*60*60)
TZAsiaShanghai is the "Asia/Shanghai" timezone.
Functions ¶
Types ¶
type RetryableError ¶
type RetryableError string
RetryableError is an error indicating that an operation is retryable.
func (RetryableError) Is ¶
func (RetryableError) Is(target error) bool
Is reports whether the target is `ErrRetryable`.
Click to show internal directories.
Click to hide internal directories.