weetools

package module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOSUidFromPort

func GetOSUidFromPort(port int64, network int8) (*user.User, error)

GetOSUidFromPort

@Description: 根据远程网络地址的端口号获取对应的系统用户
@param port  远程地址的端口号
@param network  协议切换: Tcp=int8(1), Tcp6=int8(2)
@return *user.User  返回标准库user包的用户帐户
@return error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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