Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolVersion = 1 MagicCookieKey = "DODO_PLUGIN" MagicCookieValue = "69318785-d741-4150-ac91-8f03fa703530" FailedPlugin = "error" ErrPluginInvalid PluginError = "invalid plugin" ErrPluginNotImplemented PluginError = "not implemented" ErrPluginNotFound PluginError = "plugin not found" ErrNoValidPluginFound PluginError = "no valid plugin found" ErrCircularDependency PluginError = "circular plugin dependency" )
Variables ¶
This section is empty.
Functions ¶
func PathByName ¶
Types ¶
type CancelCopier ¶
func NewCancelCopier ¶
func NewCancelCopier(src io.Reader, dst io.Writer) *CancelCopier
func (*CancelCopier) Close ¶
func (c *CancelCopier) Close()
func (*CancelCopier) Copy ¶
func (c *CancelCopier) Copy() error
type DemuxCopier ¶
type DemuxCopier struct {
Src io.Reader
DstOut io.Writer
DstErr io.Writer
// contains filtered or unexported fields
}
func NewDemuxCopier ¶
func (*DemuxCopier) Copy ¶
func (c *DemuxCopier) Copy() error
type Manager ¶ added in v0.2.0
type Manager struct {
// contains filtered or unexported fields
}
func (Manager) GetPlugins ¶ added in v0.2.0
func (Manager) IncludePlugins ¶ added in v0.2.0
func (Manager) LoadPlugins ¶ added in v0.2.0
func (m Manager) LoadPlugins()
func (Manager) RegisterPluginTypes ¶ added in v0.2.0
func (Manager) ServePlugins ¶ added in v0.2.0
func (Manager) UnloadPlugins ¶ added in v0.2.0
func (Manager) UnloadPlugins()
type MuxCopier ¶
type Plugin ¶
type Plugin interface {
PluginInfo() *api.PluginInfo
Init() (PluginConfig, error)
Type() Type
}
type PluginConfig ¶ added in v0.2.0
type PluginError ¶
type PluginError string
const (
ErrNoStreamingConnection PluginError = "no streaming connection established"
)
func (PluginError) Error ¶
func (e PluginError) Error() string
type StdioClient ¶
type StdioClient struct {
// contains filtered or unexported fields
}
func NewStdioClient ¶
func NewStdioClient(url string) (*StdioClient, error)
type StdioServer ¶
type StdioServer struct {
// contains filtered or unexported fields
}
func NewStdioServer ¶
func NewStdioServer() (*StdioServer, error)
func (*StdioServer) Endpoint ¶
func (s *StdioServer) Endpoint() string
type StreamConfig ¶
Click to show internal directories.
Click to hide internal directories.