pluginoption

package
v0.9.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL