upload

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: GPL-3.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartWebServer

func StartWebServer(data *Data) error

StartWebServer starts echo web service

Types

type DB

type DB interface {
	InsertRequest(ctx context.Context, req *persistence.ReqData) error
	InsertStatus(ctx context.Context, req *persistence.Status) error
	DeleteWorkData(ctx context.Context, ID string) error
}

DBSaver saves requests to DB

type Data

type Data struct {
	Port        int
	Saver       FileSaver
	DB          DB
	MsgSender   MsgSender
	RetrySecret string
}

Data keeps data required for service work

type FileSaver

type FileSaver interface {
	SaveFile(ctx context.Context, name string, r io.Reader, fileSize int64) error
}

FileSaver provides save file functionality

type MsgSender

type MsgSender interface {
	SendMessage(context.Context, amessages.Message, *messages.Options) error
}

MsgSender provides send msg functionality

Jump to

Keyboard shortcuts

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