swiftypes

package
v0.0.0-...-897e99f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NilGUID = GUID{}
View Source
var NilLUID = LUID{}

Functions

This section is empty.

Types

type AdapterType

type AdapterType int
const (
	AdapterTypeTUN AdapterType = iota
	AdapterTypeTAP
)

type DNSConfig

type DNSConfig struct {
	Domain     string
	DnsServers []net.IP
}

func (DNSConfig) String

func (g DNSConfig) String() string

type GUID

type GUID struct {
	Data1 uint32
	Data2 uint16
	Data3 uint16
	Data4 [8]byte
}

func ParseGUID

func ParseGUID(guid string) (result GUID, err error)

func (GUID) String

func (g GUID) String() string

type InterfaceStatus

type InterfaceStatus uint32
const (
	InterfaceUp InterfaceStatus = iota
	InterfaceDown
)

type LUID

type LUID struct {
	LowPart  uint32
	HighPart int32
}

func NewLUID

func NewLUID(luid uint64) LUID

func (LUID) String

func (l LUID) String() string

func (LUID) ToUint64

func (l LUID) ToUint64() uint64

type UnicastConfig

type UnicastConfig struct {
	IPNet       *net.IPNet
	Gateway, IP net.IP
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL