Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptAES ¶
DecryptAES decrypts ciphertext with key, see https://golang.org/pkg/crypto/cipher/#NewCFBDecrypter
func EncryptAES ¶
EncryptAES encrypts plaintext with key, see https://golang.org/pkg/crypto/cipher/#NewCFBEncrypter
func HashString ¶
func PanicOnError ¶
func PanicOnError(err error)
PanicOnError panics if the given error is not nil DO NOT USE WITH DEFER
func PanicOnErrorFunc ¶ added in v0.5.0
func PanicOnErrorFunc(f func() error)
PanicOnErrorFunc panics if the given function execution error is not nil
Types ¶
type ShutdownWaitGroup ¶
func NewShutdownWaitGroup ¶
func NewShutdownWaitGroup() *ShutdownWaitGroup
func (*ShutdownWaitGroup) Expect ¶
func (s *ShutdownWaitGroup) Expect()
func (*ShutdownWaitGroup) IsExpected ¶
func (s *ShutdownWaitGroup) IsExpected() bool
func (*ShutdownWaitGroup) RegisterSignalHandler ¶
func (s *ShutdownWaitGroup) RegisterSignalHandler(shutdownCallback func())
func (*ShutdownWaitGroup) WaitOrTimeout ¶
func (s *ShutdownWaitGroup) WaitOrTimeout(timeout time.Duration) bool
Wait for internal `sync.WorkGroup` to complete and return `true` or `false`, if not shutdown successfully in timeout-limit.
Click to show internal directories.
Click to hide internal directories.