{"modulePath":"github.com/voutilad/rp-connect-python","version":"v1.7.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package processor\n\n## Constants\n\n```go\nconst (\n\t// GlobalContent provides bytes from a Message.\n\tGlobalContent = \"__content_callback\"\n\t// GlobalMetadata provides the \"metadata\" function.\n\tGlobalMetadata = \"__metadata_callback\"\n\t// GlobalMessageAddr points to a service.Message\n\tGlobalMessageAddr = \"__message_addr\"\n)\n```\n\n## Functions\n\n```go\nfunc NewPythonProcessor(exe, script string, cnt int, mode python.Mode, serializer python.SerializerMode,\n\tlogger *service.Logger) (service.BatchProcessor, error)\n```\nNewPythonProcessor creates new Python processor instance with the provided configuration.\n\nThis will create and initialize a new sub-interpreter from the main Python Go routine and precompile some Python code objects.\n\n## Types\n\n```go\ntype PythonProcessor struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (p *PythonProcessor) Close(ctx context.Context) error\n```\nClose a processor.\n\nIf we're the last Python Processor, ask the main Go routine to stop the runtime.\n\n```go\nfunc (p *PythonProcessor) ProcessBatch(ctx context.Context, batch service.MessageBatch) ([]service.MessageBatch, error)\n```\nProcessBatch executes the given Python script against each message in the batch.\n\n","path":"github.com/voutilad/rp-connect-python/processor","name":"processor","synopsis":"","isRedistributable":true}
