helper

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BUS_OBSERVATION_QUEUE_INTERVAL = time.Second
View Source
const CONFIGURE_ID_DEFAULT = -1
View Source
const CPU_PROFILE_DURATION = time.Second
View Source
const CPU_PROFILE_DURATION_MAX = 2 * CPU_PROFILE_DURATION
View Source
const ENV_PROFILE_INTERVAL = 5 * time.Second
View Source
const EventMetadata_Timeout = 5 * time.Second
View Source
const PREREQUISITE_ACCOMPLISHED = -1
View Source
const TIME_FORMAT_DEFAULT = time.RFC3339
View Source
const TIME_FORMAT_RFC3339 = time.RFC3339
View Source
const TIME_FORMAT_RFC3339Nano = time.RFC3339Nano

Variables

View Source
var JSONEncoder jsonEncoder

Functions

func BytesToString

func BytesToString(bytes []byte) string

func StringToBytes

func StringToBytes(str string) []byte

func StringToBytesV2

func StringToBytesV2(str string) (bytes []byte)

Types

type LockFreeQueue

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

func NewLockFreeQueue

func NewLockFreeQueue() *LockFreeQueue

func (*LockFreeQueue) Dequeue

func (q *LockFreeQueue) Dequeue() (interface{}, bool)

func (*LockFreeQueue) Enqueue

func (q *LockFreeQueue) Enqueue(v interface{})

func (*LockFreeQueue) Length

func (q *LockFreeQueue) Length() int

Jump to

Keyboard shortcuts

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