Documentation
      ¶
    
    
  
    
      
          Rendered for darwin/amd64
        
      Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  
var NetworkData = sync.OnceValues(func() ([]NetworkDataType, error) { b, err := SystemProfiler(context.Background(), "SPNetworkDataType") if err != nil { return nil, err } var networkData SPNetworkDataType if err := json.Unmarshal(b, &networkData); err != nil { return nil, err } return networkData.SPNetworkDataType, nil })
Functions ¶
Types ¶
type NetworkDataType ¶
type Proxies ¶
type Proxies struct {
	ExceptionList []string `json:"ExceptionList"` // default: ["*.local", "169.254/16"]
	FTPEnable     string   `json:"FTPEnable"`
	FTPPort       any      `json:"FTPPort"`
	FTPProxy      string   `json:"FTPProxy"`
	FTPUser       string   `json:"FTPUser"`
	HTTPEnable    string   `json:"HTTPEnable"`
	HTTPPort      any      `json:"HTTPPort"`
	HTTPProxy     string   `json:"HTTPProxy"`
	HTTPUser      string   `json:"HTTPUser"`
	HTTPSEnable   string   `json:"HTTPSEnable"`
	HTTPSPort     any      `json:"HTTPSPort"`
	HTTPSProxy    string   `json:"HTTPSProxy"`
	HTTPSUser     string   `json:"HTTPSUser"`
}
    type SPNetworkDataType ¶
type SPNetworkDataType struct {
	SPNetworkDataType []NetworkDataType `json:"SPNetworkDataType"`
}
     Click to show internal directories. 
   Click to hide internal directories.