util

package
v1.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHash

func CreateHash(key string) string

func Decrypt

func Decrypt(cipherText, passphrase string) (string, error)

func Encrypt

func Encrypt(plainText, passphrase string) (string, error)

Types

type ConcurrentSlice added in v1.5.2

type ConcurrentSlice struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

ConcurrentSlice is a slice that can be appended concurrently

func (*ConcurrentSlice) Append added in v1.5.2

func (cs *ConcurrentSlice) Append(item interface{})

Append safely appends items to a slice

func (*ConcurrentSlice) GetItems added in v1.5.2

func (cs *ConcurrentSlice) GetItems() []interface{}

GetItems gets the items from the list, should only be used when there are no operations working on it.

Jump to

Keyboard shortcuts

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