Export raw bundles with collection logs and parser field snapshot

This commit is contained in:
Mikhail Chusavitin
2026-02-24 17:36:44 +03:00
parent 810c4b5ff9
commit ce30f943df
4 changed files with 270 additions and 9 deletions

View File

@@ -19,6 +19,8 @@ var WebFS embed.FS
type Config struct {
Port int
PreloadFile string
AppVersion string
AppCommit string
}
type Server struct {
@@ -124,6 +126,20 @@ func (s *Server) GetRawExport() *RawExportPackage {
return &cloned
}
func (s *Server) ClientVersionString() string {
s.mu.RLock()
defer s.mu.RUnlock()
v := s.config.AppVersion
c := s.config.AppCommit
if v == "" {
v = "dev"
}
if c == "" {
c = "none"
}
return fmt.Sprintf("LOGPile %s (commit: %s)", v, c)
}
// SetDetectedVendor sets the detected vendor name
func (s *Server) SetDetectedVendor(vendor string) {
s.mu.Lock()