getconfig

package
v1.2.2-dev.29 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(executor GetExecutor, lc logger.LoggingClient) *get

New is a factory function that returns an initialized get struct.

func NewExecutor

func NewExecutor(
	genClients *agentClients.General,
	registryClient registry.Client,
	lc logger.LoggingClient,
	serviceProtocol string) *executor

NewExecutor is a factory function that returns an initialized executor struct.

Types

type GetExecutor

type GetExecutor interface {
	Do(ctx context.Context, service string) (string, error)
}

GetExecutor defines a contract for getting configuration for a service.

Jump to

Keyboard shortcuts

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