Documentation
¶
Index ¶
- type Client
- func (n *Client) DownloadFile(ctx context.Context, key string) (io.ReadCloser, error)
- func (n *Client) GenerateImageURL(key string, width int) string
- func (n *Client) GenerateUploadToken(fileName string, dir string, ...) ([3]string, error)
- func (n *Client) UploadFile(ctx context.Context, file io.Reader, size int64, key string) (string, error)
- func (n *Client) UploadLocalFile(ctx context.Context, file string, key string) (string, error)
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *urlhandler.Handler // contains filtered or unexported fields }
func (*Client) DownloadFile ¶
func (*Client) GenerateUploadToken ¶
func (*Client) UploadFile ¶
Click to show internal directories.
Click to hide internal directories.