util

package
v0.0.0-...-b320325 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signal

type Signal struct {
	*sync.Mutex
	// contains filtered or unexported fields
}

func NewSignal

func NewSignal(isSet, autoReset bool) (s *Signal)

func (Signal) IsSet

func (s Signal) IsSet() bool

func (*Signal) Reset

func (s *Signal) Reset()

func (*Signal) Set

func (s *Signal) Set()

func (*Signal) Wait

func (s *Signal) Wait()

func (*Signal) WaitTimeout

func (s *Signal) WaitTimeout(timeout time.Duration) error

type TeeLogger

type TeeLogger struct {
	*sync.Mutex
	*log.Logger

	LogWriter io.Writer
	// contains filtered or unexported fields
}

func NewTeeLogger

func NewTeeLogger(addStdout bool) (res *TeeLogger)

func (*TeeLogger) AddOutput

func (tl *TeeLogger) AddOutput(out io.Writer)

func (*TeeLogger) Write

func (tl *TeeLogger) Write(p []byte) (n int, err error)

type ValueSequenceChecker

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

func NewValueSequenceChecker

func NewValueSequenceChecker(values []int32, valSeqCheckType ValueSequenceCheckerType) *ValueSequenceChecker

func (*ValueSequenceChecker) Check

func (sc *ValueSequenceChecker) Check(val int32) bool

func (*ValueSequenceChecker) String

func (sc *ValueSequenceChecker) String() string

type ValueSequenceCheckerType

type ValueSequenceCheckerType int
const (
	ValueSeqType_SEQUENCE       ValueSequenceCheckerType = 0
	ValueSeqType_AND            ValueSequenceCheckerType = 1
	ValueSeqType_OR             ValueSequenceCheckerType = 2
	ValueSeqType_EXACT_SEQUENCE ValueSequenceCheckerType = 3
)

Jump to

Keyboard shortcuts

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