service

package
v0.0.0-...-19169da Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2019 License: MIT Imports: 3 Imported by: 0

README

Nacelle Service Container

Nacelle provides a service container with references to a root logger, under the service name logger, and a reference to itself, under the service name container.

See bussard for documentation on usage.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container interface {
	bussard.ServiceContainer

	GetLogger() logging.Logger
}

Container is a wrapper around services indexed by a unique name. Services can be retrieved by name, or injected into a struct by reading tagged fields.

func NewContainer

func NewContainer() (Container, error)

NewContainer creates an service container with itself registered to the key `container`.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳