shared

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Handshake = plugin.HandshakeConfig{

	ProtocolVersion:  1,
	MagicCookieKey:   "TAILPIPE_PLUGIN",
	MagicCookieValue: "tailpipe plugin",
}

Handshake is a common handshake that is shared by plugin and host.

Functions

This section is empty.

Types

type TailpipeGRPCPlugin

type TailpipeGRPCPlugin struct {
	// GRPCPlugin must still implement the Plugin interface
	plugin.Plugin
	// Concrete implementation, written in Go. This is only used for plugins
	// that are written in Go.
	Impl TailpipePluginServer
}

TailpipeGRPCPlugin is the implementation of plugin.GRPCPlugin so we can serve/consume this.

func (*TailpipeGRPCPlugin) GRPCClient

func (p *TailpipeGRPCPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error)

func (*TailpipeGRPCPlugin) GRPCServer

func (p *TailpipeGRPCPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error

type TailpipePluginClient

TailpipePluginClient is the client interface that we're exposing as a plugin.

type TailpipePluginClientWrapper

type TailpipePluginClientWrapper struct {
	// contains filtered or unexported fields
}

TailpipePluginClientWrapper is an implementation of TailpipePluginClient that talks over GRPC.

func (TailpipePluginClientWrapper) AddObserver

func (TailpipePluginClientWrapper) CloseSource

func (c TailpipePluginClientWrapper) CloseSource() (*proto.Empty, error)

func (TailpipePluginClientWrapper) Collect

func (TailpipePluginClientWrapper) Describe

func (TailpipePluginClientWrapper) GetSupportedOperations added in v0.9.0

func (TailpipePluginClientWrapper) InitSource

func (TailpipePluginClientWrapper) SaveCollectionState

func (c TailpipePluginClientWrapper) SaveCollectionState() (*proto.Empty, error)

func (TailpipePluginClientWrapper) SourceCollect

func (TailpipePluginClientWrapper) SourceCollectionComplete added in v0.7.0

func (c TailpipePluginClientWrapper) SourceCollectionComplete() (*proto.Empty, error)

func (TailpipePluginClientWrapper) SourcePause added in v0.5.0

func (c TailpipePluginClientWrapper) SourcePause() (*proto.Empty, error)

func (TailpipePluginClientWrapper) SourceResume added in v0.5.0

func (c TailpipePluginClientWrapper) SourceResume() (*proto.Empty, error)

func (TailpipePluginClientWrapper) UpdateCollectionState

type TailpipePluginServer

TailpipePluginServer is the service interface that we're exposing as a plugin.

type TailpipePluginServerWrapper

type TailpipePluginServerWrapper struct {
	proto.UnimplementedTailpipePluginServer
	// This is the real implementation
	Impl TailpipePluginServer
}

TailpipePluginServerWrapper is the gRPC server that TailpipePluginClient talks to.

func (TailpipePluginServerWrapper) AddObserver

func (TailpipePluginServerWrapper) CloseSource

func (TailpipePluginServerWrapper) Collect

func (TailpipePluginServerWrapper) Describe

func (TailpipePluginServerWrapper) GetSupportedOperations added in v0.9.0

func (TailpipePluginServerWrapper) InitSource

func (TailpipePluginServerWrapper) SaveCollectionState

func (s TailpipePluginServerWrapper) SaveCollectionState(_ context.Context, req *proto.Empty) (*proto.Empty, error)

func (TailpipePluginServerWrapper) SourceCollect

func (TailpipePluginServerWrapper) SourceCollectionComplete added in v0.7.0

func (s TailpipePluginServerWrapper) SourceCollectionComplete(_ context.Context, req *proto.Empty) (*proto.Empty, error)

func (TailpipePluginServerWrapper) SourcePause added in v0.5.0

func (TailpipePluginServerWrapper) SourceResume added in v0.5.0

func (s TailpipePluginServerWrapper) SourceResume(_ context.Context, req *proto.Empty) (*proto.Empty, error)

func (TailpipePluginServerWrapper) UpdateCollectionState

Jump to

Keyboard shortcuts

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