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.
20 lines
332 B
20 lines
332 B
package lancerroute |
|
|
|
type Lancerroute struct { |
|
c *Config |
|
} |
|
|
|
var route *Lancerroute |
|
|
|
func InitLancerRoute() error { |
|
route = new(Lancerroute) |
|
return route.InitConfig() |
|
} |
|
|
|
func GetLancerByLogid(logId string) string { |
|
if d, ok := route.c.LancerRoute[logId]; ok { |
|
return d |
|
} |
|
// lancer-common by default |
|
return "lancer-common" |
|
}
|
|
|