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.
21 lines
256 B
21 lines
256 B
2 years ago
|
package gojobs
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
2 years ago
|
"go.dtapp.net/library/goip"
|
||
2 years ago
|
)
|
||
|
|
||
|
var ip string
|
||
|
|
||
|
func configIp() {
|
||
|
ip = goip.GetOutsideIp()
|
||
|
}
|
||
|
|
||
|
const prefix = "cron:"
|
||
|
|
||
|
const prefixIp = "cron_%s:"
|
||
|
|
||
|
func prefixSprintf(str string) string {
|
||
|
return fmt.Sprintf(prefixIp, str)
|
||
|
}
|