grpc

package
v1.18.0-beta11 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 16 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFunctionDiscoveryFactory added in v1.9.25

func NewFunctionDiscoveryFactory() fds.FunctionDiscoveryFactory

Types

type FunctionDiscoveryFactory

type FunctionDiscoveryFactory struct {
	// TODO: yuval-k: integrate backoff stuff here
	DetectionTimeout   time.Duration
	DetectionRetryBase time.Duration
	FunctionPollTime   time.Duration
	// TODO: move over to ArtifactClient
	Artifacts v1.ArtifactClient
}

FunctionDiscoveryFactory returns a FunctionDiscovery that can be used to discover functions ilackarms: this is the root object

func (*FunctionDiscoveryFactory) NewFunctionDiscovery

NewFunctionDiscovery returns a FunctionDiscovery that can be used to discover functions

type UpstreamFunctionDiscovery

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

UpstreamFunctionDiscovery represents a function discovery for upstream

func (*UpstreamFunctionDiscovery) DetectFunctions

func (f *UpstreamFunctionDiscovery) DetectFunctions(ctx context.Context, url *url.URL, _ func() fds.Dependencies, updatecb func(fds.UpstreamMutator) error) error

func (*UpstreamFunctionDiscovery) DetectFunctionsOnce

func (f *UpstreamFunctionDiscovery) DetectFunctionsOnce(ctx context.Context, url *url.URL, updatecb func(fds.UpstreamMutator) error) error

func (*UpstreamFunctionDiscovery) DetectType

func (*UpstreamFunctionDiscovery) IsFunctional

func (f *UpstreamFunctionDiscovery) IsFunctional() bool

IsFunctional returns true if the upstream is functional

Jump to

Keyboard shortcuts

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