ossvc: imp docs

This commit is contained in:
Eugene Burkov 2025-10-06 18:31:15 +03:00
parent ff41521552
commit bd030f01a3
3 changed files with 4 additions and 3 deletions

View File

@ -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]

View File

@ -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)

View File

@ -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)
}