sendremotefile

package module
v4.0.0-...-9c52871 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 11 Imported by: 0

README

sendremotefile

HTTP middleware to send a file by the presigned URL

Documentation

Index

Constants

View Source
const (
	OneMB  uint = 1024 * 1024 * 1
	FiveMB uint = 1024 * 1024 * 5
	TenMB  uint = 1024 * 1024 * 10
)

Variables

This section is empty.

Functions

func NewBytePool

func NewBytePool() *bpool

func NewClient

func NewClient(url string, timeout time.Duration) *client

func NewWriterPool

func NewWriterPool() *wpool

Types

type Configurer

type Configurer interface {
	UnmarshalKey(name string, out any) error
	Has(name string) bool
}

type Logger

type Logger interface {
	NamedLogger(name string) *zap.Logger
}

type Plugin

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

func (*Plugin) Init

func (p *Plugin) Init(cfg Configurer, log Logger) error

func (*Plugin) Middleware

func (p *Plugin) Middleware(next http.Handler) http.Handler

func (*Plugin) Name

func (p *Plugin) Name() string

Middleware/plugin name.

Jump to

Keyboard shortcuts

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