{"modulePath":"github.com/dgmann/document-manager/pdf-processor/pkg/processor","version":"v1.0.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package processor\n\n## Variables\n\n```go\nvar (\n\tPdf_Method_name = map[int32]string{\n\t\t0: \"AUTO\",\n\t\t1: \"EXTRACT\",\n\t\t2: \"RASTERIZE\",\n\t\t4: \"EXPLICIT\",\n\t}\n\tPdf_Method_value = map[string]int32{\n\t\t\"AUTO\":      0,\n\t\t\"EXTRACT\":   1,\n\t\t\"RASTERIZE\": 2,\n\t\t\"EXPLICIT\":  4,\n\t}\n)\n```\nEnum value maps for Pdf\\_Method.\n\n```go\nvar File_processor_proto protoreflect.FileDescriptor\n```\n\n```go\nvar PdfProcessor_ServiceDesc = grpc.ServiceDesc{\n\tServiceName: \"processor.PdfProcessor\",\n\tHandlerType: (*PdfProcessorServer)(nil),\n\tMethods: []grpc.MethodDesc{\n\t\t{\n\t\t\tMethodName: \"RotateImage\",\n\t\t\tHandler:    _PdfProcessor_RotateImage_Handler,\n\t\t},\n\t\t{\n\t\t\tMethodName: \"CreatePdf\",\n\t\t\tHandler:    _PdfProcessor_CreatePdf_Handler,\n\t\t},\n\t},\n\tStreams: []grpc.StreamDesc{\n\t\t{\n\t\t\tStreamName:    \"ConvertPdfToImage\",\n\t\t\tHandler:       _PdfProcessor_ConvertPdfToImage_Handler,\n\t\t\tServerStreams: true,\n\t\t},\n\t},\n\tMetadata: \"processor.proto\",\n}\n```\nPdfProcessor\\_ServiceDesc is the grpc.ServiceDesc for PdfProcessor service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)\n\n## Functions\n\n```go\nfunc RegisterPdfProcessorServer(s grpc.ServiceRegistrar, srv PdfProcessorServer)\n```\n\n## Types\n\n```go\ntype Document struct {\n\tTitle     string      `protobuf:\"bytes,1,opt,name=title,proto3\" json:\"title,omitempty\"`\n\tDocuments []*Document `protobuf:\"bytes,2,rep,name=documents,proto3\" json:\"documents,omitempty\"`\n\tPages     []*Image    `protobuf:\"bytes,3,rep,name=pages,proto3\" json:\"pages,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*Document) Descriptor() ([]byte, []int)\n```\nDeprecated: Use Document.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *Document) GetDocuments() []*Document\n```\n\n```go\nfunc (x *Document) GetPages() []*Image\n```\n\n```go\nfunc (x *Document) GetTitle() string\n```\n\n```go\nfunc (*Document) ProtoMessage()\n```\n\n```go\nfunc (x *Document) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *Document) Reset()\n```\n\n```go\nfunc (x *Document) String() string\n```\n\n```go\ntype Image struct {\n\tFormat  string `protobuf:\"bytes,1,opt,name=format,proto3\" json:\"format,omitempty\"`\n\tContent []byte `protobuf:\"bytes,2,opt,name=content,proto3\" json:\"content,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*Image) Descriptor() ([]byte, []int)\n```\nDeprecated: Use Image.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *Image) GetContent() []byte\n```\n\n```go\nfunc (x *Image) GetFormat() string\n```\n\n```go\nfunc (*Image) ProtoMessage()\n```\n\n```go\nfunc (x *Image) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *Image) Reset()\n```\n\n```go\nfunc (x *Image) String() string\n```\n\n```go\ntype Pdf struct {\n\tContent     []byte     `protobuf:\"bytes,1,opt,name=content,proto3\" json:\"content,omitempty\"`\n\tMethod      Pdf_Method `protobuf:\"varint,2,opt,name=method,proto3,enum=processor.Pdf_Method\" json:\"method,omitempty\"`\n\tMethodName  string     `protobuf:\"bytes,3,opt,name=method_name,json=methodName,proto3\" json:\"method_name,omitempty\"`            // Method name when EXPLICIT is selected.\n\tPageNumbers []uint32   `protobuf:\"varint,4,rep,packed,name=page_numbers,json=pageNumbers,proto3\" json:\"page_numbers,omitempty\"` // Page numbers which should be processed\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*Pdf) Descriptor() ([]byte, []int)\n```\nDeprecated: Use Pdf.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *Pdf) GetContent() []byte\n```\n\n```go\nfunc (x *Pdf) GetMethod() Pdf_Method\n```\n\n```go\nfunc (x *Pdf) GetMethodName() string\n```\n\n```go\nfunc (x *Pdf) GetPageNumbers() []uint32\n```\n\n```go\nfunc (*Pdf) ProtoMessage()\n```\n\n```go\nfunc (x *Pdf) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *Pdf) Reset()\n```\n\n```go\nfunc (x *Pdf) String() string\n```\n\n```go\ntype PdfProcessorClient interface {\n\t// Convert the pages of a PDF file to images.\n\t//\n\t// Convert the pages of a PDF file to images.\n\tConvertPdfToImage(ctx context.Context, in *Pdf, opts ...grpc.CallOption) (PdfProcessor_ConvertPdfToImageClient, error)\n\tRotateImage(ctx context.Context, in *Rotate, opts ...grpc.CallOption) (*Image, error)\n\tCreatePdf(ctx context.Context, in *Document, opts ...grpc.CallOption) (*Pdf, error)\n}\n```\nPdfProcessorClient is the client API for PdfProcessor service.\n\nFor semantics around ctx use and closing/ending streaming RPCs, please refer to [https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream](https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream).\n\n```go\nfunc NewPdfProcessorClient(cc grpc.ClientConnInterface) PdfProcessorClient\n```\n\n```go\ntype PdfProcessorServer interface {\n\t// Convert the pages of a PDF file to images.\n\t//\n\t// Convert the pages of a PDF file to images.\n\tConvertPdfToImage(*Pdf, PdfProcessor_ConvertPdfToImageServer) error\n\tRotateImage(context.Context, *Rotate) (*Image, error)\n\tCreatePdf(context.Context, *Document) (*Pdf, error)\n\t// contains filtered or unexported methods\n}\n```\nPdfProcessorServer is the server API for PdfProcessor service. All implementations must embed UnimplementedPdfProcessorServer for forward compatibility\n\n```go\ntype PdfProcessor_ConvertPdfToImageClient interface {\n\tRecv() (*Image, error)\n\tgrpc.ClientStream\n}\n```\n\n```go\ntype PdfProcessor_ConvertPdfToImageServer interface {\n\tSend(*Image) error\n\tgrpc.ServerStream\n}\n```\n\n```go\ntype Pdf_Method int32\n```\n\n```go\nconst (\n\tPdf_AUTO      Pdf_Method = 0\n\tPdf_EXTRACT   Pdf_Method = 1\n\tPdf_RASTERIZE Pdf_Method = 2\n\tPdf_EXPLICIT  Pdf_Method = 4\n)\n```\n\n```go\nfunc (Pdf_Method) Descriptor() protoreflect.EnumDescriptor\n```\n\n```go\nfunc (x Pdf_Method) Enum() *Pdf_Method\n```\n\n```go\nfunc (Pdf_Method) EnumDescriptor() ([]byte, []int)\n```\nDeprecated: Use Pdf\\_Method.Descriptor instead.\n\n```go\nfunc (x Pdf_Method) Number() protoreflect.EnumNumber\n```\n\n```go\nfunc (x Pdf_Method) String() string\n```\n\n```go\nfunc (Pdf_Method) Type() protoreflect.EnumType\n```\n\n```go\ntype Rotate struct {\n\tContent []byte  `protobuf:\"bytes,1,opt,name=content,proto3\" json:\"content,omitempty\"`\n\tDegree  float64 `protobuf:\"fixed64,2,opt,name=degree,proto3\" json:\"degree,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (*Rotate) Descriptor() ([]byte, []int)\n```\nDeprecated: Use Rotate.ProtoReflect.Descriptor instead.\n\n```go\nfunc (x *Rotate) GetContent() []byte\n```\n\n```go\nfunc (x *Rotate) GetDegree() float64\n```\n\n```go\nfunc (*Rotate) ProtoMessage()\n```\n\n```go\nfunc (x *Rotate) ProtoReflect() protoreflect.Message\n```\n\n```go\nfunc (x *Rotate) Reset()\n```\n\n```go\nfunc (x *Rotate) String() string\n```\n\n```go\ntype UnimplementedPdfProcessorServer struct {\n}\n```\nUnimplementedPdfProcessorServer must be embedded to have forward compatible implementations.\n\n```go\nfunc (UnimplementedPdfProcessorServer) ConvertPdfToImage(*Pdf, PdfProcessor_ConvertPdfToImageServer) error\n```\n\n```go\nfunc (UnimplementedPdfProcessorServer) CreatePdf(context.Context, *Document) (*Pdf, error)\n```\n\n```go\nfunc (UnimplementedPdfProcessorServer) RotateImage(context.Context, *Rotate) (*Image, error)\n```\n\n```go\ntype UnsafePdfProcessorServer interface {\n\t// contains filtered or unexported methods\n}\n```\nUnsafePdfProcessorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PdfProcessorServer will result in compilation errors.\n\n","path":"github.com/dgmann/document-manager/pdf-processor/pkg/processor","name":"processor","synopsis":"","isRedistributable":true}
