Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Example ¶
func Example(di *dixinternal.Dix)
Example demonstrates how to use the HTTP server for dependency visualization
Types ¶
type DependencyData ¶
type DependencyData struct {
Providers []ProviderInfo `json:"providers"`
Objects []ObjectInfo `json:"objects"`
Edges []EdgeInfo `json:"edges"`
}
DependencyData represents the structure of dependency information
type EdgeInfo ¶
type EdgeInfo struct {
From string `json:"from"`
To string `json:"to"`
Type string `json:"type"` // "provider" or "object"
}
EdgeInfo represents a dependency relationship
type ObjectInfo ¶
type ObjectInfo struct {
ID string `json:"id"`
Type string `json:"type"`
Group string `json:"group"`
IsInitialized bool `json:"is_initialized"`
}
ObjectInfo contains information about an object instance
type ProviderInfo ¶
type ProviderInfo struct {
ID string `json:"id"`
OutputType string `json:"output_type"`
FunctionName string `json:"function_name"`
InputTypes []string `json:"input_types"`
}
ProviderInfo contains information about a provider
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server provides HTTP endpoints to visualize dependency relationships
func NewServer ¶
func NewServer(dix *dixinternal.Dix) *Server
NewServer creates a new HTTP server for dependency visualization
func (*Server) ListenAndServe ¶
ListenAndServe starts the HTTP server on the specified address
Click to show internal directories.
Click to hide internal directories.