discovery

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 27 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOrchestratorPool

func NewOrchestratorPool(bcast common.Broadcaster, uris []*url.URL, score float32, orchBlacklist []string) *orchestratorPool

func NewOrchestratorPoolWithPred

func NewOrchestratorPoolWithPred(bcast common.Broadcaster, addresses []*url.URL,
	pred func(*net.OrchestratorInfo) bool, score float32, orchBlacklist []string) *orchestratorPool

func NewWebhookPool

func NewWebhookPool(bcast common.Broadcaster, callback *url.URL) *webhookPool

func StubOrchestratorPool added in v0.5.1

func StubOrchestratorPool(addresses []string) *stubOrchestratorPool

func StubOrchestrators added in v0.5.1

func StubOrchestrators(addresses []string) []*lpTypes.Transcoder

Types

type DBOrchestratorPoolCache

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

func NewDBOrchestratorPoolCache

func NewDBOrchestratorPoolCache(ctx context.Context, node *core.LivepeerNode, rm common.RoundsManager, orchBlacklist []string) (*DBOrchestratorPoolCache, error)

func (*DBOrchestratorPoolCache) GetInfos added in v0.5.23

func (*DBOrchestratorPoolCache) GetOrchestrators

func (dbo *DBOrchestratorPoolCache) GetOrchestrators(ctx context.Context, numOrchestrators int, suspender common.Suspender, caps common.CapabilityComparator,
	scorePred common.ScorePred) (common.OrchestratorDescriptors, error)

func (*DBOrchestratorPoolCache) Size

func (dbo *DBOrchestratorPoolCache) Size() int

func (*DBOrchestratorPoolCache) SizeWith added in v0.5.23

func (dbo *DBOrchestratorPoolCache) SizeWith(scorePred common.ScorePred) int

Jump to

Keyboard shortcuts

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