discovery

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(discoveryDSN string) (registry.Discovery, error)

Create instantiates a discovery based on `discoveryDSN`.

func Register

func Register(name string, factory Factory)

Register registers one discovery.

Types

type Factory

type Factory func(dsn *url.URL) (registry.Discovery, error)

type Registry

type Registry interface {
	Register(name string, factory Factory)
	Create(discoveryDSN string) (registry.Discovery, error)
}

Registry is the interface for callers to get registered middleware.

func NewRegistry

func NewRegistry() Registry

NewRegistry returns a new middleware registry.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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