Documentation ¶
Rendered for windows/amd64
Index ¶
Constants ¶
View Source
const ( ERROR_BUFFER_OVERFLOW syscall.Errno = 111 ERROR_SUCCESS syscall.Errno = 0 )
View Source
const ( MAX_ADAPTER_ADDRESS_LENGTH = 8 MAX_ADAPTER_DESCRIPTION_LENGTH = 128 MAX_ADAPTER_NAME_LENGTH = 256 MAX_DOMAIN_NAME_LEN = 128 MAX_HOSTNAME_LEN = 128 )
View Source
const ( NIC_WIRELESS802_11 = 71 NIC_ATMNETOWRK = 28 NIC_LOOPBACK = 24 NIC_PPP = 23 NIC_TOKENRING = 9 NIC_ETHERNET = 6 )
View Source
const ( ERROR_INVALID_PARAMETER = 0x57 MYSQL_TIME_FORMAT = "2006-01-02 15:04:05" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterInfo ¶
type AdapterInfo struct { AdapterName string Description string MacAddress string Type string CurrentIPAddress []string IpAddressList []string GatewayAddressList []string DhcpServerList []string PrimaryWinsServer []string SecondaryWinsServer []string WiFiProfiles []wiFiProfile LeaseObtained string LeaseExpires string Index int32 ComboIndex int32 HaveWins bool DhcpEnabled bool }
type AdaptersInfo ¶
type AdaptersInfo struct {
Adapters map[string]AdapterInfo
}
func (AdaptersInfo) ToJSON ¶
func (AI AdaptersInfo) ToJSON() (ret []byte, err error)
type NICFilterType ¶
type NICFilterType NicType
type NICSearchFilterGUID ¶
type NICSearchFilterGUID string
type NICSearchFilterID ¶
type NICSearchFilterID int
type NetworkInfo ¶
type NetworkInfo struct{}
func NewNetworkInfo ¶
func NewNetworkInfo() *NetworkInfo
func (*NetworkInfo) GetAdaptersInfo ¶
func (NI *NetworkInfo) GetAdaptersInfo(filters ...interface{}) (ret AdaptersInfo, err error)
GetAdaptersInfo returns network interfaces. Can be filtered (logic are in AND) using GUID, ID and NIC typo
Click to show internal directories.
Click to hide internal directories.