Documentation
¶
Index ¶
- type ServerConfiguration
- type ServerOption
- func EnableInputValidation() ServerOption
- func EnableOutputValidation() ServerOption
- func SetServerOption(opts ...grpc.ServerOption) ServerOption
- func WithLogger(logger hclog.Logger) ServerOption
- func WithPluginServer(server api.PluginServer) ServerOption
- func WithServiceServer(serviceServers ...api.ServiceServer) ServerOption
- func WithTestConfig(config *goplugin.ServeTestConfig) ServerOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerConfiguration ¶
type ServerConfiguration struct {
PluginServer api.PluginServer
ServerOptions []grpc.ServerOption
ServiceServers []api.ServiceServer
Logger hclog.Logger
TestConfig *goplugin.ServeTestConfig
ValidateInput bool
ValidateOutput bool
}
type ServerOption ¶
type ServerOption func(*ServerConfiguration)
func EnableInputValidation ¶
func EnableInputValidation() ServerOption
func EnableOutputValidation ¶
func EnableOutputValidation() ServerOption
func SetServerOption ¶
func SetServerOption(opts ...grpc.ServerOption) ServerOption
func WithLogger ¶
func WithLogger(logger hclog.Logger) ServerOption
func WithPluginServer ¶
func WithPluginServer(server api.PluginServer) ServerOption
func WithServiceServer ¶
func WithServiceServer(serviceServers ...api.ServiceServer) ServerOption
func WithTestConfig ¶
func WithTestConfig(config *goplugin.ServeTestConfig) ServerOption
Click to show internal directories.
Click to hide internal directories.