lib_gc_util

package
v0.0.0-...-e28984d Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ENVIRONMENT_VARIABLE_TYPE_STRING = iota
	ENVIRONMENT_VARIABLE_TYPE_BOOL
	ENVIRONMENT_VARIABLE_TYPE_INT64
	ENVIRONMENT_VARIABLE_TYPE_UINT64
	ENVIRONMENT_VARIABLE_TYPE_FLOAT64
)

Variables

View Source
var Dummy struct{}

Functions

func GetAsString

func GetAsString(value interface{}) string

Get a value of type interface{} as a string

func GetCAPNPDataList

func GetCAPNPDataList(data *[][]byte, segment *C.Segment) *C.DataList

func GetCAPNPTextList

func GetCAPNPTextList(texts *[]string, segment *C.Segment) *C.TextList

Cap'N'Proto utilities

func IsSliceContainsString

func IsSliceContainsString(item string, slice *[]string) bool

func RenderDurationManual

func RenderDurationManual(d time.Duration) string

Render time

func RenderTimeManual

func RenderTimeManual(t time.Time) string

Render time

Types

type EnvironmentVariable

type EnvironmentVariable struct {
	Var_name  string
	Var_type  int
	Var_value interface{}
}

func GetEnvironmentVariables

func GetEnvironmentVariables(vars []*EnvironmentVariable) ([]*EnvironmentVariable, error)

type Locker

type Locker struct {
	Locks map[string]string
}

func (*Locker) Lock

func (_locker *Locker) Lock(key string) bool

func (*Locker) Unlock

func (_locker *Locker) Unlock(key string)

type LockerFactoryImpl

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

func (*LockerFactoryImpl) GetLocker

func (lf *LockerFactoryImpl) GetLocker(name string) *Locker

type LockerFactory_I

type LockerFactory_I interface {
	GetLocker(name string) *Locker
}
var LockerFactory LockerFactory_I = &LockerFactoryImpl{make(map[string]*Locker)}

Jump to

Keyboard shortcuts

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