discovery

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolverCloudRun

func NewResolverCloudRun() core.DiscoveryAddressResolver

NewResolverCloudRun is a constructor for *ResolverCloudRun.

func NewResolverLocal

func NewResolverLocal() core.DiscoveryAddressResolver

NewResolverLocal is a constructor for *ResolverLocal.

Types

type ResolverCloudRun

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

ResolverCloudRun implements the core.DiscoveryAddressResolver interface assuming the service is running on Cloud Run.

func (*ResolverCloudRun) Read

func (r *ResolverCloudRun) Read(ctx context.Context) (string, error)

Read returns the persisted discovery address.

type ResolverLocal

type ResolverLocal struct{}

ResolverLocal implements the core.DiscoveryAddressResolver interface assuming the address is present in the config.

func (*ResolverLocal) Read

func (r *ResolverLocal) Read(_ context.Context) (string, error)

Jump to

Keyboard shortcuts

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