vith

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SmallSize is the size of each thumbnail generated
	SmallSize = 150
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App of package

func New added in v0.2.0

func New(config Config, prometheusRegisterer prometheus.Registerer, amqpClient *amqp.Client, storageApp absto.Storage, tracer trace.Tracer) App

New creates new App from Config

func (App) AmqpStreamHandler added in v0.2.0

func (a App) AmqpStreamHandler(ctx context.Context, message amqp.Delivery) error

func (App) AmqpThumbnailHandler added in v0.2.0

func (a App) AmqpThumbnailHandler(ctx context.Context, message amqp.Delivery) error

func (App) Done added in v0.2.0

func (a App) Done() <-chan struct{}

Done close when work is over

func (App) Handler

func (a App) Handler() http.Handler

Handler for request. Should be use with net/http

func (App) Start added in v0.2.0

func (a App) Start(ctx context.Context)

Start worker

type Config added in v0.2.0

type Config struct {
	// contains filtered or unexported fields
}

Config of package

func Flags added in v0.2.0

func Flags(fs *flag.FlagSet, prefix string, overrides ...flags.Override) Config

Flags adds flags for configuring package

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL