utils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCA

func LoadCA(caCertFile string) (*x509.CertPool, error)

func LoadCert

func LoadCert(certFile string, keyFile string) (*tls.Certificate, error)

func LoadPublicKey

func LoadPublicKey(file string) (interface{}, error)

func LoadYaml

func LoadYaml(path string, v interface{}) error

func StringToUuid

func StringToUuid(s string) uuid.UUID

func UuidToString

func UuidToString(u uuid.UUID) string

Types

type AtomicBool

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

func (*AtomicBool) CompareAndSwap

func (b *AtomicBool) CompareAndSwap(old, new bool) bool

func (*AtomicBool) Get

func (b *AtomicBool) Get() bool

func (*AtomicBool) Set

func (b *AtomicBool) Set(value bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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