mirror of
https://github.com/wneessen/logranger.git
synced 2024-10-06 09:05:57 +02:00
Winni Neessen
a20b6c64c6
Module references within 'go.mod', 'main.go', and various plugin files have been changed from 'github.com/wneessen/logranger' to 'src.neessen.cloud/wneessen/logranger'. This update is essential to align with the new source location and ensure code and plugins function as expected. The Dockerfile’s commands have also been updated accordingly.
17 lines
599 B
Go
17 lines
599 B
Go
// SPDX-FileCopyrightText: 2023 Winni Neessen <wn@neessen.dev>
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package actions
|
|
|
|
import (
|
|
"src.neessen.cloud/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
|
|
}
|