Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(opts ...Option) decorators.DecoratedService
NewService returns a service implementation for Service.
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func GatewaySelector ¶
func GatewaySelector(val pool.Selectable[gateway.GatewayAPIClient]) Option
GatewaySelector adds a grpc client selector for the gateway service
func ThumbnailSource ¶
ThumbnailSource provides a function to set the image source option.
func ThumbnailStorage ¶
ThumbnailStorage provides a function to set the thumbnail storage option.
type Options ¶
type Options struct {
Logger log.Logger
Config *config.Config
Middleware []func(http.Handler) http.Handler
ThumbnailStorage storage.Storage
ImageSource imgsource.Source
CS3Source imgsource.Source
GatewaySelector pool.Selectable[gateway.GatewayAPIClient]
}
Options defines the available options for this package.
type PreprocessorOpts ¶
type PreprocessorOpts struct {
TxtFontFileMap string
}
PreprocessorOpts holds the options for the preprocessor
type Thumbnail ¶
type Thumbnail struct {
// contains filtered or unexported fields
}
Thumbnail implements the GRPC handler.
func (Thumbnail) GetThumbnail ¶
func (g Thumbnail) GetThumbnail(ctx context.Context, req *thumbnailssvc.GetThumbnailRequest, rsp *thumbnailssvc.GetThumbnailResponse) error
GetThumbnail retrieves a thumbnail for an image
Click to show internal directories.
Click to hide internal directories.