registry

package
v0.0.0-...-a35f291 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

func NewContainer

func NewContainer() *Container

func (*Container) Get

func (self *Container) Get(name string) interface{}

func (*Container) Register

func (self *Container) Register(name string, service interface{})

type Registrant

type Registrant struct {
	Name    string
	Service interface{}
}

type Service

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

func (*Service) GetRegistry

func (self *Service) GetRegistry() *Container

func (*Service) SetRegistry

func (self *Service) SetRegistry(r *Container)

Jump to

Keyboard shortcuts

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