vmodel

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clash

type Clash struct {
	HttpPort  string `json:"http_port"`
	SocksPort string `json:"socks_port"`
	RedirPort string `json:"redir_port"`
	MixedPort string `json:"mixed_port"`
	AllowLan  bool   `json:"allow_lan"`
	Mode      string `json:"mode"`
}

type Device

type Device struct {
	Device string `json:"device"`
	IP     string `json:"ip"`
}

网络设备

type Dhcp

type Dhcp struct {
	HostName string `json:"host_name"`
	IP       string `json:"ip"`
	Mac      string `json:"mac"`
}

局域网 dhcp 设备

type Extranet

type Extranet struct {
	IP       string `json:"ip"`       // ip
	Location string `json:"location"` // 位置
}

type NetWork

type NetWork struct {
	HostName string    `json:"host_name"`
	Wan      *Extranet `json:"wan"`
	Lan      []*Device `json:"lan"`
	Devices  []*Dhcp   `json:"devices"`
}

type OpenWrt

type OpenWrt struct {
	HostName   string `json:"host_name"`
	ExtranetIP string `json:"extranet_ip"`
}

type Stat

type Stat struct {
	CpuTemp     string `json:"cpu_temp"`
	MemUsage    string `json:"mem_usage"`
	DiskUsage   string `json:"disk_usage"`
	RunningTime string `json:"running_time"`
	BootTime    string `json:"boot_time"`
	NowTime     string `json:"now_time"`
}

Jump to

Keyboard shortcuts

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