Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Commit

Permalink
rename actor(s) to service(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
im-kulikov committed Apr 29, 2021
1 parent ce5052e commit 82cf329
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* [Why Helium](#why-helium)
* [About Helium and modules](#about-helium-and-modules)
* [Preconfigure](#defaults-and-preconfigure)
* [Group](#group-actors)
* [Group](#group-services)
* [Services](#service-module)
* [Logger](#logger-module)
* [NATS](#nats-module)
Expand Down Expand Up @@ -52,7 +52,7 @@ The modular structure of helium consists of the following concepts

It contains the following components for rapid prototyping of your projects:
- Grace - [context](https://golang.org/pkg/context/) that helps you gracefully shutdown your application
- Group - collects an actors and runs them concurrently, [see examples](#group-actors).
- Group - collects an services and runs them concurrently, [see examples](#group-services).
- Logger - [zap](https://go.uber.org/zap) is blazing fast, structured, leveled logging in Go
- DI - based on [DIG](https://go.uber.org/dig). A reflection based dependency injection toolkit for Go.
- Module - set of tools for working with the DI component
Expand Down Expand Up @@ -92,7 +92,7 @@ func main() {
}
```

## Group (actors)
## Group (services)

*Helium* provides primitive to run group of services (callback and shutdown functions) concurrently and stop when
- context will be canceled
Expand Down Expand Up @@ -133,7 +133,7 @@ func runner(ctx context.Context, services []service.Service) error {
run.Add(prepare(svc))
}

// - wait until any actor will be stopped
// - wait until any service will be stopped
// - wait until context will be canceled or deadlined
return run.Run(ctx)
}
Expand Down Expand Up @@ -177,7 +177,7 @@ import (
"context"

"github.com/im-kulikov/helium/service"
"github.com/oklog/oklog/pkg/group"
"github.com/im-kulikov/helium/group"
)

type app struct {}
Expand Down

0 comments on commit 82cf329

Please sign in to comment.