MCPcopy Create free account

hub / github.com/gotenberg/gotenberg / types & classes

Types & classes147 in github.com/gotenberg/gotenberg

↓ 2 callersTypeAliasAlphanumericSort
AlphanumericSort implements sort.Interface and helps to sort strings alphanumerically by either a numeric prefix or, if missing, a numeric suffix. Se
pkg/gotenberg/sort.go:26
↓ 2 callersTypeAliasdigitSuffixSort
pkg/modules/pdfcpu/sort.go:10
InterfaceApi
Api helps to interact with Chromium for converting HTML documents to PDF.
pkg/modules/chromium/chromium.go:428
StructApi
Api is a module that provides an HTTP server. Other modules may add routes, middlewares or health checks.
pkg/modules/api/api.go:30
StructApi
Api is a module that provides a [Uno] to interact with LibreOffice.
pkg/modules/libreoffice/api/api.go:49
StructApiMock
ApiMock is a mock for the [Api] interface.
pkg/modules/chromium/mocks.go:11
StructApiMock
ApiMock is a mock for the [Uno] interface.
pkg/modules/libreoffice/api/mocks.go:12
InterfaceApp
App is a module interface for modules which can be started or stopped by the application.
pkg/gotenberg/modules.go:64
InterfaceAsynchronousCounter
AsynchronousCounter is a module interface that returns the number of active asynchronous requests. See https://github.com/gotenberg/gotenberg/issues/
pkg/modules/api/api.go:179
StructBookmark
Bookmark represents a node in the PDF document's outline (table of contents).
pkg/gotenberg/pdfengine.go:202
StructChromium
Chromium is a module that provides both an [Api] and routes for converting an HTML document to PDF.
pkg/modules/chromium/chromium.go:94
StructCmd
Cmd wraps an [exec.Cmd].
pkg/gotenberg/cmd.go:22
StructContext
Context is a struct that helps to initialize modules. When provisioning, a module may use the context to get other modules that it needs internally.
pkg/gotenberg/context.go:10
StructContext
Context is the request context for a "multipart/form-data" request.
pkg/modules/api/context.go:45
StructContextMock
ContextMock is a helper for tests. ctx := &api.ContextMock{Context: &api.Context{}}
pkg/modules/api/mocks.go:15
StructCookie
Cookie gathers the available entries for setting a cookie in the Chromium cookies' jar.
pkg/modules/chromium/chromium.go:381
StructDebugInfo
DebugInfo gathers data for debugging.
pkg/gotenberg/debug.go:13
InterfaceDebuggable
Debuggable is a module interface for modules which want to provide additional debug data.
pkg/gotenberg/modules.go:80
StructDebuggableMock
pkg/gotenberg/mocks.go:36
FuncTypeDecideOption
DecideOption customizes how [DecideOutbound] and [FilterOutboundURL] validate a URL. Options are applied in order on top of the permissive defaults (n
pkg/gotenberg/outbound.go:196
StructEmulatedMediaFeature
EmulatedMediaFeature gathers the available entries for emulating a media feature.
pkg/modules/chromium/chromium.go:210
StructEncryptOptions
EncryptOptions gathers the parameters for encrypting a PDF. An empty UserPassword with a set OwnerPassword produces an owner-only document: it opens w
pkg/gotenberg/pdfengine.go:187
StructExifTool
ExifTool abstracts the CLI tool ExifTool and implements the [gotenberg.PdfEngine] interface.
pkg/modules/exiftool/exiftool.go:162
StructExtraHttpHeader
ExtraHttpHeader are extra HTTP headers to send by Chromium.
pkg/modules/chromium/chromium.go:412
StructFacturX
FacturX gathers the properties required by the Factur-X/ZUGFeRD standard for the document-level XMP metadata packet of a PDF/A-3.
pkg/gotenberg/pdfengine.go:246
StructFileSystem
FileSystem provides utilities for managing temporary directories. It creates unique directory names based on UUIDs to ensure isolation of temporary fi
pkg/gotenberg/fs.go:43
StructFormData
FormData is a helper for validating and hydrating values from a "multipart/form-data" request. form := ctx.FormData()
pkg/modules/api/formdata.go:39
StructHTTPClient
pkg/gotenberg/semconv/client.go:27
StructHTTPServer
pkg/gotenberg/semconv/server.go:39
InterfaceHealthChecker
HealthChecker is a module interface that allows adding health checks to the API. See https://github.com/alexliesenfeld/health for more details.
pkg/modules/api/api.go:170
StructHealthCheckerMock
HealthCheckerMock is a mock for the [HealthChecker] interface.
pkg/modules/api/mocks.go:125
InterfaceHttpError
Credits: https://www.joeshaw.org/error-handling-in-go-http-applications. HttpError is an interface allowing to retrieve the HTTP details of an error.
pkg/modules/api/errors.go:6
StructLeveledLogger
LeveledLogger is a wrapper around a [slog.Logger] so that it may be used by a [retryablehttp.Client].
pkg/gotenberg/telemetry.go:209
StructLibreOffice
LibreOffice is a module that provides a route for converting documents to PDF with LibreOffice.
pkg/modules/libreoffice/libreoffice.go:19
StructLibreOfficePdfEngine
LibreOfficePdfEngine interacts with the LibreOffice (Universal Network Objects) API and implements the [gotenberg.PdfEngine] interface.
pkg/modules/libreoffice/pdfengine/pdfengine.go:19
StructMetric
Metric represents a unitary metric.
pkg/gotenberg/metrics.go:4
StructMetricAttributes
pkg/gotenberg/semconv/server.go:242
StructMetricData
pkg/gotenberg/semconv/server.go:249
StructMetricOpts
pkg/gotenberg/semconv/client.go:258
InterfaceMetricsProvider
MetricsProvider is a module interface which provides a list of [Metric]. func (m *YourModule) Provision(ctx *gotenberg.Context) error { provider,
pkg/gotenberg/metrics.go:24
StructMetricsProviderMock
MetricsProviderMock is a mock for the [MetricsProvider] interface.
pkg/gotenberg/mocks.go:208
StructMiddleware
Middleware is a middleware that can be added to the [Api]'s middlewares chain. middleware := Middleware{ Handler: func() echo.MiddlewareFunc {
pkg/modules/api/api.go:149
TypeAliasMiddlewarePriority
MiddlewarePriority is a type that helps to determine the execution order of middlewares provided by the [MiddlewareProvider] modules in a stack.
pkg/modules/api/api.go:114
InterfaceMiddlewareProvider
MiddlewareProvider is a module interface that adds middlewares to the [Api].
pkg/modules/api/api.go:98
StructMiddlewareProviderMock
MiddlewareProviderMock is a mock for the [MiddlewareProvider] interface.
pkg/modules/api/mocks.go:116
TypeAliasMiddlewareStack
MiddlewareStack is a type that helps to determine in which stack the middlewares provided by the [MiddlewareProvider] modules should be located.
pkg/modules/api/api.go:104
InterfaceMkdirAll
MkdirAll defines the method signature for create a directory. Implement this interface if you don't want to rely on [os.MkdirAll], notably for testing
pkg/gotenberg/fs.go:13
StructMkdirAllMock
MkdirAllMock is a mock for the [MkdirAll] interface.
pkg/gotenberg/mocks.go:217
InterfaceModule
Module is a sort of plugin which adds new functionalities to the application or other modules. type YourModule struct { property string } func
pkg/gotenberg/modules.go:31
StructModuleDescriptor
ModuleDescriptor describes your module for the application.
pkg/gotenberg/modules.go:36
StructModuleMock
ModuleMock is a mock for the [Module] interface.
pkg/gotenberg/mocks.go:10
StructOptions
Options are the common options for all conversions.
pkg/modules/chromium/chromium.go:119
StructOptions
Options gathers available options when converting a document to PDF. See: https://help.libreoffice.org/latest/en-US/text/shared/guide/pdf_params.html.
pkg/modules/libreoffice/api/api.go:70
StructOsMkdirAll
OsMkdirAll implements the [MkdirAll] interface with [os.MkdirAll].
pkg/gotenberg/fs.go:19
StructOsPathRename
OsPathRename implements the [PathRename] interface with [os.Rename].
pkg/gotenberg/fs.go:33
StructOutboundDecision
OutboundDecision is the result of validating an outbound URL via [DecideOutbound]. Callers use it to dial the destination either directly (operator-ap
pkg/gotenberg/outbound.go:170
StructParsedFlags
ParsedFlags wraps a [flag.FlagSet] so that retrieving the typed values is easier.
pkg/gotenberg/flags.go:13
InterfacePathRename
PathRename defines the method signature for renaming files. Implement this interface if you don't want to rely on [os.Rename], notably for testing pur
pkg/gotenberg/fs.go:27
StructPathRenameMock
PathRenameMock is a mock for the [PathRename] interface.
pkg/gotenberg/mocks.go:226
StructPdfCpu
PdfCpu abstracts the CLI tool pdfcpu and implements the [gotenberg.PdfEngine] interface.
pkg/modules/pdfcpu/pdfcpu.go:33
InterfacePdfEngine
PdfEngine provides an interface for operations on PDFs. Implementations can use various tools like PDFtk, or implement functionality directly in Go.
pkg/gotenberg/pdfengine.go:266
StructPdfEngineInvalidArgsError
PdfEngineInvalidArgsError represents an error returned by a PDF engine when invalid arguments are provided. It includes the name of the engine and a d
pkg/gotenberg/pdfengine.go:47
StructPdfEngineMock
PdfEngineMock is a mock for the [PdfEngine] interface. nolint:dupl
pkg/gotenberg/mocks.go:47
InterfacePdfEngineProvider
PdfEngineProvider offers an interface to instantiate a [PdfEngine]. This is used to decouple the creation of a [PdfEngine] from its consumers. Exampl
pkg/gotenberg/pdfengine.go:349
StructPdfEngineProviderMock
PdfEngineProviderMock is a mock for the [PdfEngineProvider] interface.
pkg/gotenberg/mocks.go:136
StructPdfEngines
PdfEngines acts as an aggregator and manager for multiple PDF engine modules. It enables the selection and ordering of PDF engines based on user prefe
pkg/modules/pdfengines/pdfengines.go:30
StructPdfFormats
PdfFormats specifies the target formats for a PDF conversion.
pkg/gotenberg/pdfengine.go:141
StructPdfOptions
PdfOptions are the available options for converting an HTML document to PDF.
pkg/modules/chromium/chromium.go:245
StructPdfPermissions
PdfPermissions gathers the document permissions enforced when a PDF is encrypted. Each field defaults to true (the action is allowed); set a field to
pkg/gotenberg/pdfengine.go:154
StructPdfTk
PdfTk abstracts the CLI tool PDFtk and implements the [gotenberg.PdfEngine] interface.
pkg/modules/pdftk/pdftk.go:29
InterfaceProcess
Process is an interface that represents an abstract process and provides methods for starting, stopping, and checking the health of the process. Impl
pkg/gotenberg/supervisor.go:31
StructProcessMock
ProcessMock is a mock for the [Process] interface.
pkg/gotenberg/mocks.go:145
InterfaceProcessSupervisor
ProcessSupervisor provides methods to manage a [Process], including starting, stopping, and ensuring its health. Additionally, it allows for the exec
pkg/gotenberg/supervisor.go:52
StructProcessSupervisorMock
ProcessSupervisorMock is a mock for the [ProcessSupervisor] interface.
pkg/gotenberg/mocks.go:164
StructPrometheus
Prometheus is a module that collects metrics and exposes them via an HTTP route.
pkg/modules/prometheus/prometheus.go:25
InterfaceProvider
Provider is a module interface that exposes a method for creating an [Api] for other modules. func (m *YourModule) Provision(ctx *gotenberg.Context)
pkg/modules/chromium/chromium.go:440
InterfaceProvider
Provider is a module interface that exposes a method for creating a [Uno] for other modules. func (m *YourModule) Provision(ctx *gotenberg.Context)
pkg/modules/libreoffice/api/api.go:320
StructProviderMock
ProviderMock is a mock for the [Provider] interface.
pkg/modules/libreoffice/api/mocks.go:26
InterfaceProvisioner
Provisioner is a module interface for modules which have to be initialized according to flags, environment variables, the context, etc.
pkg/gotenberg/modules.go:52
StructProvisionerMock
ProvisionerMock is a mock for the [Provisioner] interface.
pkg/gotenberg/mocks.go:19
StructQPdf
QPdf abstracts the CLI tool QPDF and implements the [gotenberg.PdfEngine] interface.
pkg/modules/qpdf/qpdf.go:34
StructRequestTraceAttrsOpts
pkg/gotenberg/semconv/server.go:26
StructResponseTelemetry
pkg/gotenberg/semconv/server.go:31
StructRoute
Route represents a route from a [Router].
pkg/modules/api/api.go:74
InterfaceRouter
Router is a module interface that adds routes to the [Api].
pkg/modules/api/api.go:69
StructRouterMock
RouterMock is a mock for the [Router] interface.
pkg/modules/api/mocks.go:107
StructScreenshotOptions
ScreenshotOptions are the available options for capturing a screenshot from an HTML document.
pkg/modules/chromium/chromium.go:336
StructSentinelHttpError
SentinelHttpError is the HTTP sidekick of an error.
pkg/modules/api/errors.go:11
StructServerMetricData
pkg/gotenberg/semconv/server.go:234
StructSplitMode
SplitMode gathers the data required to split a PDF into multiple parts.
pkg/gotenberg/pdfengine.go:101
StructStamp
Stamp gathers the data required to apply a watermark or stamp to a PDF.
pkg/gotenberg/pdfengine.go:75
InterfaceSystemLogger
SystemLogger is a module interface for modules which want to display messages on startup.
pkg/gotenberg/modules.go:74
StructTelemetryConfig
TelemetryConfig gathers the configuration data for Gotenberg's telemetry.
pkg/gotenberg/telemetry.go:38
InterfaceUno
Uno is an abstraction on top of the Universal Network Objects API.
pkg/modules/libreoffice/api/api.go:308
InterfaceValidator
Validator is a module interface for modules which have to be validated after provisioning.
pkg/gotenberg/modules.go:58
StructValidatorMock
ValidatorMock is a mock for the [Validator] interface.
pkg/gotenberg/mocks.go:28
StructWebhook
Webhook is a module that provides a middleware for uploading output files to any destinations in an asynchronous fashion.
pkg/modules/webhook/webhook.go:20
StructattemptResult
pkg/modules/pdfengines/multi.go:97
Interfacebrowser
pkg/modules/chromium/browser.go:26
StructbrowserArguments
pkg/modules/chromium/browser.go:32
next →1–100 of 147, ranked by callers