mirror of
https://github.com/fatedier/frp.git
synced 2025-07-26 23:29:58 +00:00
add e2e tests for v1 config (#3608)
This commit is contained in:
@@ -32,6 +32,9 @@ var creators = make(map[string]CreatorFn)
|
||||
type CreatorFn func(options v1.ClientPluginOptions) (Plugin, error)
|
||||
|
||||
func Register(name string, fn CreatorFn) {
|
||||
if _, exist := creators[name]; exist {
|
||||
panic(fmt.Sprintf("plugin [%s] is already registered", name))
|
||||
}
|
||||
creators[name] = fn
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user