mirror of
https://github.com/gogrlx/docs.grlx.dev.git
synced 2026-04-02 11:18:58 -07:00
fix(service): fixed service provider description
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
title: grlx.ingredients.service.providers
|
||||
description: grlx built-in service providers
|
||||
---
|
||||
grlx has a concept of service providers for different ways to interact with a sprout's various services. This uses a provider interface to keep this extensible and provide a standard way to interact with different service managers. The `go` interface for Service Providers looks like the following:
|
||||
grlx has a concept of service providers for different ways to interact with a sprout's various services. This uses a provider interface to keep this extensible and provide a standard way to interact with different service managers. The Go interface for Service Providers looks like the following:
|
||||
```go
|
||||
type ServiceProvider interface {
|
||||
Properties() (map[string]interface{}, error)
|
||||
@@ -30,7 +30,7 @@ type ServiceProvider interface {
|
||||
By default, grlx only has a `systemd` provider.
|
||||
|
||||
## systemd
|
||||
The local provider would be how you would use a file from your host system.
|
||||
The `systemd` provider is
|
||||
#### Example
|
||||
```yaml
|
||||
service.disabled:
|
||||
|
||||
Reference in New Issue
Block a user