Skip to content

Commit

Permalink
Add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lwj5 committed Dec 8, 2023
1 parent 697b30e commit 3daee95
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Inity

[![Go Lint](https://github.com/Inquisico/go-inity/actions/workflows/golangci-lint-push.yaml/badge.svg)](https://github.com/Inquisico/go-inity/actions/workflows/golangci-lint-push.yaml) [![Go Test](https://github.com/Inquisico/go-inity/actions/workflows/go-test-push.yaml/badge.svg)](https://github.com/Inquisico/go-inity/actions/workflows/go-test-push.yaml) [![Release Drafter](https://github.com/Inquisico/go-inity/actions/workflows/release-drafter.yaml/badge.svg)](https://github.com/Inquisico/go-inity/actions/workflows/release-drafter.yaml)

Inity is a simple and easy service bootstrap agent for Go projects.

See [examples](examples) for more information.
15 changes: 15 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Inity Examples

### Simple

A simple example showing to use Inity to bootstrap a service.

### Hierarchical

A hierarchical example showing how to use Inity to bootstrap a service with multiple dependencies. This is useful when you have a service that has multiple dependencies that need to be started and closed in a specific order.

In this example, HTTP server C requires HTTP server A and B to be running before C, using multiple inity manager we can start server A and B first followed by C. When a signal is sent to close the service, C will be closed first followed by A and B.

### Zerolog

An example showing how to use Inity with Zerolog

0 comments on commit 3daee95

Please sign in to comment.