github.com/kotvytskyi/discovery


Install
go get github.com/kotvytskyi/discovery

Documentation

Discovery

The library builds a .NET services dependencies graph based on the ports specified in the config files.

Usage

func main() {
  frameworkDiscoverer := dotnet.FrameworkDiscoverer{}
  coreDiscoverer := dotnet.CoreDiscoverer{}

  result, err := discovery.Discover(`C:\Path\To\Solutions\Folder`, []discovery.IDiscoverer{
    frameworkDiscoverer,
    coreDiscoverer,
  })
}

Output structure

type ServiceInfo struct {
	Name         string
	Port         int
	Dependencies []ServiceInfo
}

Application

The library was build to visualize dependencies between services on the local machine. The sample app under /app directory produces the following HTML image