tencent

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2021 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 Client

type Client interface {
	Upload(ctx context.Context, file io.Reader, key string) (string, error)
	Delete(ctx context.Context, key string) error
	DeleteMulti(ctx context.Context, keys ...string) ([]string, error)
}

func NewClient

func NewClient(config Config) Client

type Config

type Config struct {
	SecretID  string `json:"secret_id"`
	SecretKey string `json:"secret_key"`
	BucketURL string `json:"bucket_url"`
}

Jump to

Keyboard shortcuts

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