util

package
v0.0.0-...-97dd610 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceFilterKey = ".service"
	AddressFilterKey = ".address"
	IDFilterKey      = ".id"
)

Variables

This section is empty.

Functions

func FilterFromCategory

func FilterFromCategory(filter map[string]string) (map[string]*common.URL, error)

FilterFromCategory get URLs from cache by filter

func OldOverride2URL

func OldOverride2URL(o *model.OldOverride) (*common.URL, error)

func Providers2DTO

func Providers2DTO(providers []*model.Provider) []*model.ServiceDTO

Providers2DTO converts a list of providers to a list of servicesDTOs

func URL2Consumer

func URL2Consumer(id string, url *common.URL) *model.Consumer

URL2Consumer transforms a URL to a consumer

func URL2ConsumerList

func URL2ConsumerList(servicesMap map[string]*common.URL) []*model.Consumer

URL2ConsumerList transforms URLs into a list of consumers

func URL2Provider

func URL2Provider(id string, url *common.URL) *model.Provider

URL2Provider transforms a URL into a Service

func URL2ProviderList

func URL2ProviderList(servicesMap map[string]*common.URL) []*model.Provider

URL2ProviderList transforms URLs to a list of providers

Types

This section is empty.

Jump to

Keyboard shortcuts

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