lancerroute.go 332 B

1234567891011121314151617181920
  1. package lancerroute
  2. type Lancerroute struct {
  3. c *Config
  4. }
  5. var route *Lancerroute
  6. func InitLancerRoute() error {
  7. route = new(Lancerroute)
  8. return route.InitConfig()
  9. }
  10. func GetLancerByLogid(logId string) string {
  11. if d, ok := route.c.LancerRoute[logId]; ok {
  12. return d
  13. }
  14. // lancer-common by default
  15. return "lancer-common"
  16. }