registry

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDiscoveredServices

func LoadDiscoveredServices(services ServicesInterface, env interface{})

LoadDiscoveredServices loads all registered services into the Services struct

func RegisterService

func RegisterService(name string, locatorFunc ServiceLocatorFunc)

RegisterService registers a service with the global registry

Types

type ServiceLocatorFunc

type ServiceLocatorFunc func(env interface{}) interface{}

ServiceLocatorFunc is a function that creates a service locator

type ServiceRegistry

type ServiceRegistry struct {
	// contains filtered or unexported fields
}

ServiceRegistry holds registered services

type ServicesInterface

type ServicesInterface interface {
	SetService(name string, service interface{})
}

ServicesInterface defines the interface for the Services struct

Jump to

Keyboard shortcuts

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