hashicorp / hashicorp/go-plugin
Plugins in plugin.ServeConfig is confused
Open
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 511
- Avg merge
- 22h 47m
- Merged PRs (30d)
- 4
Description
type ServeConfig struct {
HandshakeConfig
TLSProvider func() (*tls.Config, error)
Plugins PluginSet
VersionedPlugins map[int]PluginSet
GRPCServer func([]grpc.ServerOption) *grpc.Server
Logger hclog.Logger
Test *ServeTestConfig
}
It is ServeConfig struct.The Plugins is a type of PluginSet,which is constructed of map[string]Plugins.
But in common,a plugin process only contains one function.So the Plugins(map[string]Plugin) only has one string-Plugin pair in most time.Plz tell me why it is designed like this?
Sincerely thanks
Contributor guide
Assessment
This issue has not been assessed yet.