feat: enhance evobgp with new command-line tools for bundle management, including pull, verify, and apply functionalities. Update go.mod to include necessary dependencies and complete todos in architecture plan for improved observability and deployment practices.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// Package platform groups cross-cutting runtime concerns (logging hooks, build/service identity).
|
||||
// Metrics and HTTP middleware live in internal/observability for now.
|
||||
package platform
|
||||
|
||||
import (
|
||||
"os"
|
||||
"strings"
|
||||
)
|
||||
|
||||
// ServiceName returns EVOBGP_SERVICE or defaultName when unset.
|
||||
func ServiceName(defaultName string) string {
|
||||
if v := strings.TrimSpace(os.Getenv("EVOBGP_SERVICE")); v != "" {
|
||||
return v
|
||||
}
|
||||
return defaultName
|
||||
}
|
||||
Reference in New Issue
Block a user