mirror of
https://github.com/wneessen/logranger.git
synced 2024-11-25 22:25:09 +01:00
Winni Neessen
a50ae7299c
All project references have been updated to point to the appropriate routes for the GitHub repository, replacing the previously used paths to src.neessen.cloud. This includes changes in README.md, Dockerfile, go mod packaging as well as in the source code where required.
17 lines
592 B
Go
17 lines
592 B
Go
// SPDX-FileCopyrightText: 2023 Winni Neessen <wn@neessen.dev>
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package actions
|
|
|
|
import (
|
|
"github.com/wneessen/logranger/plugins"
|
|
)
|
|
|
|
// Actions is a variable that represents a map of string keys to Action values. The keys are used to identify different actions, and the corresponding values are the functions that define
|
|
var Actions = map[string]plugins.Action{}
|
|
|
|
// Add adds an action with the given name to the Actions map. The action function must implement the Action interface.
|
|
func Add(name string, action plugins.Action) {
|
|
Actions[name] = action
|
|
}
|