github.com/kiali/kiali@v1.84.0/graph/config.go (about)

     1  package graph
     2  
     3  // ConfigVendor is an interface that must be satisfied for each config vendor implementation.
     4  type ConfigVendor interface {
     5  
     6  	// NewConfig is required by the ConfigVendor interface.  It must produce a valid
     7  	// Config for the provided TrafficMap, It is recommended to use the graph/util.go
     8  	// definitions for error handling. Refer to the Cytoscape implementation as an example.
     9  	NewConfig(trafficMap TrafficMap, o ConfigOptions) interface{}
    10  }