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.
gojobs/consts.go

19 lines
209 B

package gojobs
import (
"fmt"
"go.dtapp.net/goip"
)
var ip string
func configIp() {
ip = goip.GetOutsideIp()
}
const prefix = "cron_%s:"
func prefixSprintf() string {
return fmt.Sprintf(prefix, ip)
}