Documentation ¶
Index ¶
- func Address(u *url.URL) string
- func AddressIP(add string) string
- func BoolToString(flag bool) string
- func ByteView(size int64) string
- func CheckPassword(crtyptPwd string, inputPwd string) bool
- func Connect(address string, timeout int) bool
- func ConnectCopy(in io.ReadWriteCloser, out io.ReadWriteCloser)
- func ConnectCopyWithTimeout(in net.Conn, out net.Conn, tmout int)
- func CryptPassword(pwd string) string
- func EthGet() (map[string]string, error)
- func GetDate() string
- func GetID() string
- func GetTimeStamp() string
- func GetTimeStampNumber() string
- func GetToken(length int) string
- func HostnameGet() string
- func Listen(address string) (net.Listener, error)
- func LogInit(dir string, filename string)
- func Percent(total int, used int) int
- func Rand(max int) int
- func SaveToFile(name string, body []byte) error
- func StringDiff(oldlist []string, newlist []string) ([]string, []string)
- func StringList(list []string) string
- func StringToInt(value string) int
- func TablePage(page, limit int, cnt int) (int, int)
- func TenThousandPercent(total int, used int) int
- func TlsConfigClient(servername string) (*tls.Config, error)
- func TlsConfigServer(address ...string) (*tls.Config, error)
- func Unzip(zipFile string, destDir string) error
- func VersionGet() string
- func WriteFull(w io.Writer, body []byte) error
- func Zip(srcFile string, destZip string) error
- type LogChannel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToString ¶
func CheckPassword ¶
func ConnectCopy ¶
func ConnectCopy(in io.ReadWriteCloser, out io.ReadWriteCloser)
func CryptPassword ¶
func GetTimeStamp ¶
func GetTimeStamp() string
func GetTimeStampNumber ¶
func GetTimeStampNumber() string
func HostnameGet ¶
func HostnameGet() string
func SaveToFile ¶
func StringList ¶
func StringToInt ¶
func TenThousandPercent ¶
func VersionGet ¶
func VersionGet() string
Types ¶
type LogChannel ¶
type LogChannel struct {
// contains filtered or unexported fields
}
func NewLogChannel ¶
func NewLogChannel() *LogChannel
func (*LogChannel) Listen ¶
func (lc *LogChannel) Listen() <-chan []byte
Click to show internal directories.
Click to hide internal directories.