hostinfo

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostInfo

type HostInfo struct {
	user.User
	HostName string `json:"host_name"  gorm:"size:64"`
	HostOs   string `json:"host_os"  gorm:"size:64"`
	IpAddr   string `json:"ip_addr" gorm:"size:64"` //ipv6最大45个字符串
}

func (HostInfo) GetIP

func (HostInfo) GetIP(ipAddr *string) error

GetIP 可以对外

func (*HostInfo) Init

func (st *HostInfo) Init()

Init 直接初始化

func (*HostInfo) ToJson

func (st *HostInfo) ToJson() string

func (*HostInfo) ToString

func (st *HostInfo) ToString() string

ToString 转成标准字符串

Jump to

Keyboard shortcuts

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