store

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3Store

type S3Store struct {
	Region          string
	AccesskeyID     string
	SecretAccessKey string
	Bucket          string
	StoreDir        string
	Endpoint        string

	PresignExpire time.Duration
	// contains filtered or unexported fields
}

func (*S3Store) Upload

func (ss *S3Store) Upload(ctx context.Context, path string) (downloadurl string, err error)

type Store

type Store interface {
	Upload(ctx context.Context, filepath string) (downloadurl string, err error)
}

func NewS3Store

func NewS3Store(region, akid, aksecret, bucket, endpoint, storedir string, presignExpire int) (Store, error)

Jump to

Keyboard shortcuts

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