package comp import ( "fmt" pb "git.wanbits.io/joe/franklin/protos" ) /// see docs/ConfManagement.md var ( PathServers = func(c *pb.AppConf) string { return fmt.Sprintf("%s/conf/servers", c.Namespace) } PathApps = func(c *pb.AppConf) string { return fmt.Sprintf("%s/apps", c.Namespace) } PathRedis = func(c *pb.AppConf) string { return fmt.Sprintf("%s/redis", PathServers(c)) } PathMq = func(c *pb.AppConf) string { return fmt.Sprintf("%s/mq", PathServers(c)) } PathEvBus = func(c *pb.AppConf) string { return fmt.Sprintf("%s/evbus", PathServers(c)) } PathLogin = func(c *pb.AppConf) string { return fmt.Sprintf("%s/conf/servers/login", c.Namespace) } PathKv = func(c *pb.AppConf) string { return fmt.Sprintf("%s/kv", PathServers(c)) } PathLobbies = func(c *pb.AppConf) string { return fmt.Sprintf("%s/lobbies", PathApps(c)) } PathAgents = func(c *pb.AppConf) string { return fmt.Sprintf("%s/agents", PathApps(c)) } PathLogics = func(c *pb.AppConf) string { return fmt.Sprintf("%s/logics", PathApps(c)) } PathManagers = func(c *pb.AppConf) string { return fmt.Sprintf("%s/managers", PathApps(c)) } )