Documentation
¶
Index ¶
- Variables
- func RegisterPipelineProcessor(impl PipelineProcessor, address string) error
- func ServePipelineProcessor(impl PipelineProcessor) error
- type PipelineContextData
- type PipelinePlugin
- type PipelineProcessor
- type PipelineProcessorCapability
- type PipelineProcessorCapabilityType
- type RpcClient
- func (c *RpcClient) Configure(cfg map[string]interface{}) error
- func (c *RpcClient) GetCapabilities() (PipelineProcessorCapability, error)
- func (c *RpcClient) Health() error
- func (c *RpcClient) Name() (string, error)
- func (c *RpcClient) Process(data *PipelineContextData) (*PipelineContextData, error)
- type RpcServer
- func (s *RpcServer) Configure(cfg map[string]interface{}, resp *error) error
- func (s *RpcServer) GetCapabilities(_ struct{}, resp *PipelineProcessorCapability) error
- func (s *RpcServer) Health(_ struct{}, resp *error) error
- func (s *RpcServer) Name(_ struct{}, resp *string) error
- func (s *RpcServer) Process(args *PipelineContextData, resp *PipelineContextData) error
- type ServeRegistrationErrorResponse
- type ServeRegistrationServer
Constants ¶
This section is empty.
Variables ¶
View Source
var Handshake = plugin.HandshakeConfig{
ProtocolVersion: 1,
MagicCookieKey: "NAUTLIUS",
MagicCookieValue: "pipeline",
}
View Source
var PipelineProcessorCapabilityType_Name = map[int32]string{
0: "None",
1: "Metadata",
2: "Storage",
}
View Source
var PipelineProcessorCapabilityType_Value = map[string]int32{
"None": 0,
"Metadata": 1,
"Storage": 2,
}
View Source
var Plugins = map[string]plugin.Plugin{ "pipeline": &PipelinePlugin{}, }
Functions ¶
func RegisterPipelineProcessor ¶
func RegisterPipelineProcessor(impl PipelineProcessor, address string) error
func ServePipelineProcessor ¶
func ServePipelineProcessor(impl PipelineProcessor) error
Types ¶
type PipelineContextData ¶
type PipelinePlugin ¶
type PipelinePlugin struct {
Impl PipelineProcessor
}
type PipelineProcessor ¶
type PipelineProcessor interface {
Name() (string, error)
GetCapabilities() (PipelineProcessorCapability, error)
Configure(cfg map[string]interface{}) error
Process(data *PipelineContextData) (*PipelineContextData, error)
Health() error
}
type PipelineProcessorCapability ¶
type PipelineProcessorCapability struct {
Types []PipelineProcessorCapabilityType `json:"types"`
}
type PipelineProcessorCapabilityType ¶
type PipelineProcessorCapabilityType int32
const ( None PipelineProcessorCapabilityType = 0 Metadata PipelineProcessorCapabilityType = 1 Storage PipelineProcessorCapabilityType = 2 )
func (PipelineProcessorCapabilityType) String ¶
func (t PipelineProcessorCapabilityType) String() string
type RpcClient ¶
func (*RpcClient) GetCapabilities ¶
func (c *RpcClient) GetCapabilities() (PipelineProcessorCapability, error)
func (*RpcClient) Process ¶
func (c *RpcClient) Process(data *PipelineContextData) (*PipelineContextData, error)
type RpcServer ¶
type RpcServer struct {
Impl PipelineProcessor
}
func (*RpcServer) GetCapabilities ¶
func (s *RpcServer) GetCapabilities(_ struct{}, resp *PipelineProcessorCapability) error
func (*RpcServer) Process ¶
func (s *RpcServer) Process(args *PipelineContextData, resp *PipelineContextData) error
type ServeRegistrationErrorResponse ¶
type ServeRegistrationErrorResponse struct {
Error string `json:"error"`
}
type ServeRegistrationServer ¶
type ServeRegistrationServer struct {
Listener net.Listener
Server *rpc.Server
WaitGroup sync.WaitGroup
ActiveConnections sync.Map
Cancel context.CancelFunc
}
func NewRegistrationServer ¶
func NewRegistrationServer(listener net.Listener) *ServeRegistrationServer
func (*ServeRegistrationServer) AcceptConnection ¶
func (s *ServeRegistrationServer) AcceptConnection(ctx context.Context)
func (*ServeRegistrationServer) Start ¶
func (s *ServeRegistrationServer) Start(impl PipelineProcessor) error
func (*ServeRegistrationServer) WaitForShutdown ¶
func (s *ServeRegistrationServer) WaitForShutdown() error
Click to show internal directories.
Click to hide internal directories.