You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
301 B
22 lines
301 B
package gojobs
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
"github.com/dtapps/go-library/utils/goip"
|
|
)
|
|
|
|
var ip string
|
|
|
|
func configIp() {
|
|
ip = goip.GetOutsideIp(context.Background())
|
|
}
|
|
|
|
const prefix = "cron:"
|
|
|
|
const prefixIp = "cron_%s:"
|
|
|
|
func prefixSprintf(str string) string {
|
|
return fmt.Sprintf(prefixIp, str)
|
|
}
|