mapping

package
v3.1.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockServiceNameMapping

type MockServiceNameMapping struct{}

func NewMockServiceNameMapping

func NewMockServiceNameMapping() *MockServiceNameMapping

func (*MockServiceNameMapping) Get

func (*MockServiceNameMapping) Map

func (*MockServiceNameMapping) Remove added in v3.1.0

func (m *MockServiceNameMapping) Remove(*common.URL) error

type ServiceNameMapping

type ServiceNameMapping interface {
	Map(url *common.URL) error
	Get(url *common.URL, listener registry.MappingListener) (*gxset.HashSet, error)
	Remove(url *common.URL) error
}

ServiceNameMapping is the interface which trys to build the mapping between application-level service and interface-level service.

Map method will map the service to this application-level service

Get method will return the application-level services

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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