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 ¶
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.