Skip to content

pip-services3-go/pip-services3-container-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

08f96f0 · Apr 10, 2021

History

46 Commits
Dec 25, 2020
Aug 1, 2019
Dec 8, 2020
Mar 24, 2021
Apr 10, 2021
Apr 3, 2021
Apr 3, 2021
Apr 2, 2021
Apr 2, 2021
Jan 23, 2020
Dec 7, 2020
Dec 7, 2020
Apr 10, 2021
Jul 13, 2018
Nov 16, 2020
Dec 8, 2020
Dec 7, 2020
Dec 7, 2020
Apr 10, 2021
Apr 3, 2021
Apr 3, 2021
Apr 2, 2021
Aug 1, 2019
Dec 7, 2020

Repository files navigation

Pip.Services Logo
IoC container for Golang

This module is a part of the Pip.Services polyglot microservices toolkit. It provides an inversion-of-control (IoC) container to facilitate the development of services and applications composed of loosely coupled components.

The module containes a basic in-memory container that can be embedded inside a service or application, or can be run by itself. The second container type can run as a system level process and can be configured via command line arguments. Also it can be used to create docker containers.

The containers can read configuration from JSON or YAML files use it as a recipe for instantiating and configuring components. Component factories are used to create components based on their locators (descriptor) defined in the container configuration. The factories shall be registered in containers or dynamically in the container configuration file.

The module contains the following packages:

  • Container - Component container and container as a system process
  • Build - Container default factory
  • Config - Container configuration
  • Refer - Container references

Quick links:

Use

Get the package from the Github repository:

go get -u github.com/pip-services3-go/pip-services3-container-go@latest

Develop

For development you shall install the following prerequisites:

  • Golang v1.12+
  • Visual Studio Code or another IDE of your choice
  • Docker
  • Git

Run automated tests:

go test -v ./test/...

Generate API documentation:

./docgen.ps1

Before committing changes run dockerized test as:

./test.ps1
./clear.ps1

Contacts

The Golang version of Pip.Services is created and maintained by:

  • Volodymyr Tkachenko
  • Sergey Seroukhov
  • Mark Zontak

The documentation is written by:

  • Levichev Dmitry