gopluginshim

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGRPCControllerServer

func RegisterGRPCControllerServer(s *grpc.Server, srv GRPCControllerServer)

func RegisterGoPluginShutdown

func RegisterGoPluginShutdown(server *grpc.Server, close func())

RegisterGoPluginShutdown provides a minimal implementation of the extra gRPC service that go-plugin client expect to find on any go-plugin server to command it to shut down.

Without this, go-plugin clients will hang for two seconds every time they try to shut down a plugin.

Types

type Empty

type Empty struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Empty) Descriptor

func (*Empty) Descriptor() ([]byte, []int)

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_DiscardUnknown

func (m *Empty) XXX_DiscardUnknown()

func (*Empty) XXX_Marshal

func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Empty) XXX_Merge

func (m *Empty) XXX_Merge(src proto.Message)

func (*Empty) XXX_Size

func (m *Empty) XXX_Size() int

func (*Empty) XXX_Unmarshal

func (m *Empty) XXX_Unmarshal(b []byte) error

type GRPCControllerClient

type GRPCControllerClient interface {
	Shutdown(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error)
}

GRPCControllerClient is the client API for GRPCController service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGRPCControllerClient

func NewGRPCControllerClient(cc *grpc.ClientConn) GRPCControllerClient

type GRPCControllerServer

type GRPCControllerServer interface {
	Shutdown(context.Context, *Empty) (*Empty, error)
}

GRPCControllerServer is the server API for GRPCController service.

type UnimplementedGRPCControllerServer

type UnimplementedGRPCControllerServer struct {
}

UnimplementedGRPCControllerServer can be embedded to have forward compatible implementations.

func (*UnimplementedGRPCControllerServer) Shutdown

Jump to

Keyboard shortcuts

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