mirror of
https://github.com/AdguardTeam/AdGuardHome.git
synced 2025-10-26 11:27:18 +00:00
ossvc: imp docs
This commit is contained in:
parent
ff41521552
commit
bd030f01a3
@ -1,6 +1,6 @@
|
||||
package ossvc
|
||||
|
||||
// ActionName is the type for action's names. It has the following valid
|
||||
// ActionName is the type for actions' names. It has the following valid
|
||||
// values:
|
||||
// - [ActionNameInstall]
|
||||
// - [ActionNameReload]
|
||||
|
||||
@ -59,7 +59,8 @@ func (m *manager) install(ctx context.Context, action *ActionInstall) (err error
|
||||
return s.Install()
|
||||
}
|
||||
|
||||
// reload reloads the configured service in the service manager.
|
||||
// reload stops, if not yet, and starts the configured service in the service
|
||||
// manager.
|
||||
func (m *manager) reload(ctx context.Context, action *ActionReload) (err error) {
|
||||
m.logger.DebugContext(ctx, "reloading service", "name", action.ServiceConf.Name)
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ type Manager interface {
|
||||
// Perform performs the specified action.
|
||||
Perform(ctx context.Context, action Action) (err error)
|
||||
|
||||
// Status returns the status of the service named name.
|
||||
// Status returns the status of the service with the given name.
|
||||
Status(ctx context.Context, name ServiceName) (status Status, err error)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user