hashicorp / hashicorp/go-plugin

Plugins in plugin.ServeConfig is confused

Open
#146 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.