interfaces

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigLoadProcessor added in v1.5.8

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

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

	// AfterAllReferencesConnectComplete emits on all references export complete
	AfterAllReferencesConnectComplete(urls ConfigLoadProcessorURLBinder)

	// AfterAllServicesListenComplete emits on all services export complete
	AfterAllServicesListenComplete(urls ConfigLoadProcessorURLBinder)

	// BeforeShutdown emits on before shutdown
	BeforeShutdown()
}

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

type ConfigLoadProcessorHolder added in v1.5.8

type ConfigLoadProcessorHolder struct {
	sync.Mutex
}

type ConfigLoadProcessorURLBinder added in v1.5.8

type ConfigLoadProcessorURLBinder struct {
	Success []*common.URL
	Fail    []*common.URL
}

type ConfigPostProcessor added in v1.5.6

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