Documentation ¶
Index ¶
- func Decrypt(password string, receivedPassword string) error
- func DurationSecond(duration time.Duration) time.Duration
- func Encrypt(password string) (string, error)
- func LockFuncOneInOneOut[i any, o any](f func(i) o) func(i) o
- func LockFuncOneInTwoOut[i any, o1 any, o2 any](f func(i) (o1, o2)) func(i) (o1, o2)
- func LockFuncTwoInTwoOut[i1 any, i2 any, o1 any, o2 any](f func(i1, i2) (o1, o2)) func(i1, i2) (o1, o2)
- func Parallelize(functions ...func())
- func RandomChain(chainType byte, n int) string
- func RotateTruncateLog(path string, maxFileSize int64)
- func WriteLog(filePath string, logID, logMessage string)
- type MutexWrapper
- type RWMutexWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LockFuncOneInOneOut ¶
func LockFuncOneInTwoOut ¶
func LockFuncTwoInTwoOut ¶
func Parallelize ¶
func Parallelize(functions ...func())
func RandomChain ¶
func RotateTruncateLog ¶
Types ¶
type MutexWrapper ¶
type MutexWrapper struct {
// contains filtered or unexported fields
}
type RWMutexWrapper ¶
type RWMutexWrapper struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.