zutils

package
v0.0.0-...-b53a1a1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSlackURL      = "http://localhost:5800/api/v1/notify"
	DefaultDownloaderURL = "http://localhost:5800/api/v1/upload"
)

Variables

This section is empty.

Functions

func ArchiveBundle

func ArchiveBundle(s3Archive string, fpath string, failed bool, clean bool)

func CheckPort

func CheckPort(addr string) bool

func CopyFile

func CopyFile(src, dst string) (err error)

func CreateDir

func CreateDir(dirpath string) error

func DeleteDir

func DeleteDir(dirpath string) error

func DeleteFile

func DeleteFile(fpath string) error

func DeleteFileIfExists

func DeleteFileIfExists(fpath string) error

func FileExists

func FileExists(filename string) bool

func GetIDN

func GetIDN() string

func Hash64Byte

func Hash64Byte(b []byte) uint64

func Hash64String

func Hash64String(str string) uint64

func IsTmpFS

func IsTmpFS(mpath string) bool

func ProcessIsAlive

func ProcessIsAlive(pid int) bool

func ReadPidFile

func ReadPidFile(pidFile string) (int, error)

func ReuseDir

func ReuseDir(dirpath string) error

func SlackDirectNotify

func SlackDirectNotify(host string, service string, account string, msgtype string, msg string) error

func SlackNotify

func SlackNotify(notifyUrl string, account string, msgtype string, msg string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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