service_locator

package
v0.0.0-...-7c18459 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Example

func Example()

Types

type Converter

type Converter interface {
	Convert(int float64) (float64, error)
}

type Logger

type Logger interface {
	Info(message string, args ...interface{})
}

type ServiceLocator

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

func NewServiceLocator

func NewServiceLocator() *ServiceLocator

func (*ServiceLocator) Get

func (s *ServiceLocator) Get(key string) interface{}

Retrieve a dependency by key

func (*ServiceLocator) Store

func (s *ServiceLocator) Store(key string, dep interface{})

Store or map a dependency to a key

Jump to

Keyboard shortcuts

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