Documentation
¶
Index ¶
- Constants
- func CurrentDir() string
- func DirFileList(dir string) ([]string, error)
- func EncodeACKRstStreamHeader(dst []byte) (header []byte)
- func EncodeFINRstStreamHeader(dst []byte) (header []byte)
- func EncodeHTTP2DataFrameHeader(protoType string, datalen int, dst []byte) (header []byte)
- func FileExists(path string) (bool, error)
- func IsIP(ip string) bool
- func IsIPV6(ip string) bool
- func IsLoopbackIP(ip string) bool
- func IsPrivateIP(ip string) bool
- func LogFilePath() string
- func SetLogFileHook(logDir string)
- func SysGatewayAndDevice() (gw string, dev string, err error)
- func SysPowershellMajorVersion() int
- func SysSupportPowershell() bool
- func WriteToTemp(filename string, content []byte) (namePath string, err error)
- type Bytes
Constants ¶
View Source
const ( LogMaxAge = 1 // one day LogMaxBackups = 1 // one backup LogMaxSize = 10 // 10Mb LogFileName = "easyss.log" )
View Source
const Http2HeaderLen = 9
Variables ¶
This section is empty.
Functions ¶
func CurrentDir ¶ added in v1.3.0
func CurrentDir() string
func DirFileList ¶ added in v1.4.0
func FileExists ¶
func IsLoopbackIP ¶ added in v1.4.0
func IsPrivateIP ¶
func LogFilePath ¶ added in v1.3.0
func LogFilePath() string
func SetLogFileHook ¶ added in v1.4.0
func SetLogFileHook(logDir string)
func SysGatewayAndDevice ¶ added in v1.5.0
func SysPowershellMajorVersion ¶
func SysPowershellMajorVersion() int
func SysSupportPowershell ¶
func SysSupportPowershell() bool
Types ¶
Click to show internal directories.
Click to hide internal directories.