interfaces

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2021 License: Apache-2.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigPostProcessor added in v1.5.6

type ConfigPostProcessor interface {
	// PostProcessReferenceConfig customizes ReferenceConfig's params.
	// PostProcessReferenceConfig emit on refer reference (event: before-reference-connect, reference-connect-success, reference-connect-fail)
	PostProcessReferenceConfig(url *common.URL, event string, errMsg *string)

	// PostProcessServiceConfig customizes ServiceConfig's params.
	// PostProcessServiceConfig emit on export service (event: before-service-listen, service-listen-success, service-listen-fail)
	PostProcessServiceConfig(url *common.URL, event string, errMsg *string)

	// AllReferencesConnectComplete emit on all references export complete
	AllReferencesConnectComplete()

	// AllServicesListenComplete emit on all services export complete
	AllServicesListenComplete()

	// BeforeShutdown emit on before shutdown
	BeforeShutdown()
}

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