Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New(protocol.ErrUnsupported)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Spec() PluginSpec
Handshake() protocol.Handshake
SupportsOp(op string) bool
Call(ctx context.Context, op string, input any, output any) error
StartStream(ctx context.Context, op string, input any) (streamID string, events <-chan protocol.Event, err error)
Close(ctx context.Context) error
}
type Factory ¶
type Factory struct {
// contains filtered or unexported fields
}
func NewFactory ¶
func NewFactory(opts FactoryOptions) *Factory
func (*Factory) Start ¶
func (f *Factory) Start(ctx context.Context, spec PluginSpec, opts StartOptions) (Client, error)
type FactoryOptions ¶
type PluginSpec ¶
type RequestMeta ¶
type StartOptions ¶
type StartOptions struct {
Meta RequestMeta
}
Click to show internal directories.
Click to hide internal directories.