param

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hud

type Hud struct {
	Http   *resty.Client
	Logger log.Logger
}

func NewHud

func NewHud() *Hud

type Multipart

type Multipart struct {
	Lifecycle internal.Lifecycle
	Max       int
	Size      gox.Size
	Start     int
}

func NewMultipart

func NewMultipart() *Multipart

func (*Multipart) Cap

func (m *Multipart) Cap(part int, size int64) (cap int)

func (*Multipart) Offset

func (m *Multipart) Offset(part int) int64

func (*Multipart) Parts

func (m *Multipart) Parts(size int64) int

type Upload

type Upload struct {
	Target any
	File   *os.File
	Cap    int64
}

func NewUpload

func NewUpload() *Upload

func (*Upload) Bytes

func (u *Upload) Bytes(params *Multipart, part int) (bytes []byte, err error)

func (*Upload) Mime

func (u *Upload) Mime() (mime *mimetype.MIME, err error)

func (*Upload) Parts

func (u *Upload) Parts(params *Multipart) (parts int, err error)

func (*Upload) Size

func (u *Upload) Size() (size int64, err error)

Jump to

Keyboard shortcuts

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