utils

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithAttempt added in v1.3.4

func ContextWithAttempt(ctx context.Context, attempt int) context.Context

func GetAttempt added in v1.3.4

func GetAttempt(ctx context.Context) int

Types

type ChangeNotifier added in v1.3.4

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

func NewChangeNotifier added in v1.3.4

func NewChangeNotifier() *ChangeNotifier

func (*ChangeNotifier) AddObserver added in v1.3.4

func (n *ChangeNotifier) AddObserver(key string, onChanged func())

func (*ChangeNotifier) HasObservers added in v1.3.4

func (n *ChangeNotifier) HasObservers() bool

func (*ChangeNotifier) NotifyChanged added in v1.3.4

func (n *ChangeNotifier) NotifyChanged()

func (*ChangeNotifier) RemoveObserver added in v1.3.4

func (n *ChangeNotifier) RemoveObserver(key string)

type ChangeNotifierManager added in v1.3.4

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

func NewChangeNotifierManager added in v1.3.4

func NewChangeNotifierManager() *ChangeNotifierManager

func (*ChangeNotifierManager) GetNotifier added in v1.3.4

func (m *ChangeNotifierManager) GetNotifier(key string) *ChangeNotifier

func (*ChangeNotifierManager) GetOrCreateNotifier added in v1.3.4

func (m *ChangeNotifierManager) GetOrCreateNotifier(key string) *ChangeNotifier

func (*ChangeNotifierManager) RemoveNotifier added in v1.3.4

func (m *ChangeNotifierManager) RemoveNotifier(key string, force bool)

type OpsQueue

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

func NewOpsQueue

func NewOpsQueue(logger logger.Logger, name string, size int) *OpsQueue

func (*OpsQueue) Enqueue

func (oq *OpsQueue) Enqueue(op func())

func (*OpsQueue) IsStarted added in v0.15.7

func (oq *OpsQueue) IsStarted() bool

func (*OpsQueue) SetLogger added in v0.15.6

func (oq *OpsQueue) SetLogger(logger logger.Logger)

func (*OpsQueue) Start

func (oq *OpsQueue) Start()

func (*OpsQueue) Stop

func (oq *OpsQueue) Stop()

type TimedVersion added in v1.2.0

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

func NewTimedVersionFromProto added in v1.2.0

func NewTimedVersionFromProto(ptv *livekit.TimedVersion) *TimedVersion

func (*TimedVersion) After added in v1.2.0

func (t *TimedVersion) After(other *TimedVersion) bool

func (*TimedVersion) String added in v1.3.4

func (t *TimedVersion) String() string

func (*TimedVersion) ToProto added in v1.2.0

func (t *TimedVersion) ToProto() *livekit.TimedVersion

func (*TimedVersion) Update added in v1.2.0

func (t *TimedVersion) Update(other *TimedVersion)

type TimedVersionGenerator added in v1.3.4

type TimedVersionGenerator interface {
	New() *TimedVersion
}

func NewDefaultTimedVersionGenerator added in v1.3.4

func NewDefaultTimedVersionGenerator() TimedVersionGenerator

Jump to

Keyboard shortcuts

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