helpers

package
v0.0.0-...-9058691 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(password string, receivedPassword string) error

func DurationSecond

func DurationSecond(duration time.Duration) time.Duration

func Encrypt

func Encrypt(password string) (string, error)

func LockFuncOneInOneOut

func LockFuncOneInOneOut[i any, o any](f func(i) o) func(i) o

func LockFuncOneInTwoOut

func LockFuncOneInTwoOut[i any, o1 any, o2 any](f func(i) (o1, o2)) func(i) (o1, o2)

func LockFuncTwoInTwoOut

func LockFuncTwoInTwoOut[i1 any, i2 any, o1 any, o2 any](f func(i1, i2) (o1, o2)) func(i1, i2) (o1, o2)

func Parallelize

func Parallelize(functions ...func())

func RandomChain

func RandomChain(chainType byte, n int) string

func RotateTruncateLog

func RotateTruncateLog(path string, maxFileSize int64)

func WriteLog

func WriteLog(filePath string, logID, logMessage string)

Types

type MutexWrapper

type MutexWrapper struct {
	// contains filtered or unexported fields
}

type RWMutexWrapper

type RWMutexWrapper struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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