util

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwaitWaitGroup

func AwaitWaitGroup(wg *sync.WaitGroup, timeout time.Duration) bool

AwaitWaitGroup calls Wait on the given wait Returns true if the Wait() call succeeded before the timeout Returns false if the Wait() did not return before the timeout

func DecisionToString

func DecisionToString(d *s.Decision) string

DecisionToString convert Decision to string

func HistoryEventToString

func HistoryEventToString(e *s.HistoryEvent) string

HistoryEventToString convert HistoryEvent to string

func IsTypeByteSlice added in v0.12.2

func IsTypeByteSlice(inType reflect.Type) bool

IsTypeByteSlice checks whether the type passed in is a ByteSlice type

func LoadRSAPrivateKey added in v0.19.0

func LoadRSAPrivateKey(key []byte) (*rsa.PrivateKey, error)

func LoadRSAPublicKey added in v0.19.0

func LoadRSAPublicKey(key []byte) (*rsa.PublicKey, error)

func MergeDictoRight

func MergeDictoRight(src map[string]string, dest map[string]string)

MergeDictoRight copies the contents of src to dest

func MergeDicts

func MergeDicts(dic1 map[string]string, dic2 map[string]string) (resultDict map[string]string)

MergeDicts creates a union of the two dicts

Types

type KeyType added in v0.19.0

type KeyType string
const (
	KeyTypePrivate KeyType = "private key"

	KeyTypePublic KeyType = "public key"
)

Jump to

Keyboard shortcuts

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