blob

package
v0.0.0-...-42a02cb Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator

type Iterator struct {
	UserID string
	C      <-chan ObjectInfo
	// contains filtered or unexported fields
}

func (*Iterator) Error

func (li *Iterator) Error() error

func (*Iterator) Next

func (li *Iterator) Next() bool

func (*Iterator) Value

func (li *Iterator) Value() ObjectInfo

type ObjectInfo

type ObjectInfo struct {
	UserID       string
	Filename     string
	ContentType  string
	Sum          string
	Size         int64
	LastModified time.Time
	// Reader       Reader
	Data io.ReadCloser
}

represent object

type ShareFunc

type ShareFunc func(ctx context.Context, expiration time.Duration) (*url.URL, error)

func (ShareFunc) GetURL

func (f ShareFunc) GetURL(ctx context.Context, expiration time.Duration) (*url.URL, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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