Documentation
¶
Index ¶
- Constants
- func Advanced() class
- func ClearCache(hostname string)
- func EraseResolveItem(id int)
- func GetLocalAddresses() []string
- func GetResolveItemAddress(id int) string
- func GetResolveItemAddresses(id int) []string
- func ResolveHostname(host string) string
- func ResolveHostnameAddresses(host string) []string
- func ResolveHostnameAddressesOptions(host string, ip_type Type) []string
- func ResolveHostnameOptions(host string, ip_type Type) string
- func ResolveHostnameQueueItem(host string) int
- func ResolveHostnameQueueItemOptions(host string, ip_type Type) int
- type Extension
- type ID
- type Instance
- type LocalInterface
- type ResolverStatus
- type Singleton
- type Type
Constants ¶
const ResolverInvalidId = -1 //gd:IP.RESOLVER_INVALID_ID
const ResolverMaxQueries = 256 //gd:IP.RESOLVER_MAX_QUERIES
Variables ¶
This section is empty.
Functions ¶
func Advanced ¶
func Advanced() class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
func ClearCache ¶
func ClearCache(hostname string)
func EraseResolveItem ¶
func EraseResolveItem(id int)
func GetLocalAddresses ¶
func GetLocalAddresses() []string
func GetResolveItemAddress ¶
func GetResolveItemAddresses ¶
func ResolveHostname ¶
func ResolveHostnameOptions ¶
Types ¶
type Extension ¶
Extension can be embedded in a new struct to create a Go extension of this class.
T must be a type that is embedding this Extension as the first field. It is unsafe and invalid to use this type directly, or embedded in any other way.
func (*Extension[T]) AsObject ¶
func (o *Extension[T]) AsObject() [1]gdreference.Object
type ID ¶
ID is a typed object ID (reference) to an instance of this class, use it to store references to objects with unknown lifetimes, as an ID will not panic on use if the underlying object has been destroyed.
type Instance ¶
Instance of the class with convieniently typed arguments and results.
func (Instance) AsObject ¶
func (o Instance) AsObject() [1]gdreference.Object
type LocalInterface ¶
type LocalInterface struct {
Index string `gd:"index"`
Name string `gd:"name"`
Friendly string `gd:"friendly"`
Addresses []netip.Addr `gd:"addresses"`
}
func GetLocalInterfaces ¶
func GetLocalInterfaces() []LocalInterface
type ResolverStatus ¶
type ResolverStatus int64 //gd:IP.ResolverStatus
const ( ResolverStatusNone ResolverStatus = 0 ResolverStatusWaiting ResolverStatus = 1 ResolverStatusDone ResolverStatus = 2 ResolverStatusError ResolverStatus = 3 )
func GetResolveItemStatus ¶
func GetResolveItemStatus(id int) ResolverStatus
type Singleton ¶
Singleton can be embedded in a new struct to create a Go singleton extension of the class.
It will become available as a global inside scripts and any any other Go Extension types will have any *T typed fields filled in to point at this singleton once they have been instantiated.
T must be a type that is embedding this Singleton as the first field. It is unsafe and invalid to use this type directly, or embedded in any other way.