mruntime

package
v0.0.0-...-4adfca9 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterfaceRuntime

type InterfaceRuntime struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Tap or Tun software interface runtime info

func NewInterfaceRuntime

func NewInterfaceRuntime() *InterfaceRuntime

func (*InterfaceRuntime) GetLocalMainInterfaceIpAddr

func (i *InterfaceRuntime) GetLocalMainInterfaceIpAddr() string

localMainInterfaceIpAddr

func (*InterfaceRuntime) SetLocalMainInterfaceIpAddr

func (i *InterfaceRuntime) SetLocalMainInterfaceIpAddr(newLocalMainInterfaceIpAddr string)

type RuntimeInfo

type RuntimeInfo struct {
	InterfaceInfo *InterfaceRuntime
	// contains filtered or unexported fields
}

func GetMRuntime

func GetMRuntime() *RuntimeInfo

func (*RuntimeInfo) GetRuntimeOS

func (r *RuntimeInfo) GetRuntimeOS() int

func (*RuntimeInfo) SetRuntimeOS

func (r *RuntimeInfo) SetRuntimeOS()

Jump to

Keyboard shortcuts

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