interfaces

package
v1.5.11 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConfig

func SetConfig(c Config)

Types

type Config

type Config interface {
	Prefix() string
}

type ConfigPostProcessor

type ConfigPostProcessor interface {
	// PostProcessReferenceConfig customizes ReferenceConfig's params.
	PostProcessReferenceConfig(*common.URL)

	// PostProcessServiceConfig customizes ServiceConfig's params.
	PostProcessServiceConfig(*common.URL)
}

ConfigPostProcessor is an extension to give users a chance to customize configs against ReferenceConfig and ServiceConfig during deployment time.

type ConfigReader

type ConfigReader interface {
	ReadConsumerConfig(reader *bytes.Buffer) error
	ReadProviderConfig(reader *bytes.Buffer) error
}

ConfigReader is used to read config from consumer or provider

Jump to

Keyboard shortcuts

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