plugin

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGRPCServer added in v0.0.15

func DefaultGRPCServer(opts []grpc.ServerOption) *grpc.Server

DefaultGRPCServer returns a gRPC server with a 2GB max message size.

func GetAttr added in v0.0.6

func GetAttr(req *v1.Struct, key string, defaultValue interface{}) interface{}

Types

type Identifier

type Identifier struct {
	Name      string
	Version   string
	RemoteURL string
	Checksum  string
}

type Method

type Method func(
	context.Context, *v1.Struct, ...grpc.CallOption) (*v1.Struct, error)

type Plugin

type Plugin struct {
	goplugin.NetRPCUnsupportedPlugin
	pluginV1.GatewayDPluginServiceServer

	Client *goplugin.Client

	ID          Identifier
	Description string
	Authors     []string
	License     string
	ProjectURL  string
	LocalPath   string
	Args        []string
	Env         []string
	Enabled     bool
	// internal and external config options
	Config map[string]string
	// hooks it attaches to
	Hooks    []pluginV1.HookName
	Priority Priority
	// required plugins to be loaded before this one
	// Built-in plugins are always loaded first
	Requires   []Identifier
	Tags       []string
	Categories []string
}

type Priority

type Priority uint

Priority is the priority of a hook. Smaller values are executed first (higher priority).

Directories

Path Synopsis
Package v1 contains generated types for google/protobuf/struct.proto.
Package v1 contains generated types for google/protobuf/struct.proto.

Jump to

Keyboard shortcuts

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