Skip to content
This repository was archived by the owner on Jul 11, 2024. It is now read-only.
/ registry-pattern Public archive

Registry pattern in Golang for plugins, similar to those used in infrastructure tools

Notifications You must be signed in to change notification settings

Faheetah/registry-pattern

Repository files navigation

What is this?

This repository demonstrates the registry pattern in Golang by using interface factories. Dynamic configuration is demonstrated with deferred TOML loading. TOML was chosen as it is commonly used for tools configuration, though any configuration that allows deferred decoding (i.e. json.RawMessage) to cascade the configuration down to the plugins. It also demonstrates a common build pattern with Docker multi-stage builds and building the resulting binary into the scratch Docker container.

Running the Example

Download Docker and Docker Compose https://docs.docker.com/install/

Get Dep https://github.com/golang/dep

Run dep ensure

Run docker-compose up

About

Registry pattern in Golang for plugins, similar to those used in infrastructure tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages