images

package
v0.2.20 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CflAccountHash = env.Must("CFL_ACCOUNT_HASH")

Functions

func Delete

func Delete(cflAccount, cflImagesToken, id string) error

Types

type ImageUploadInfo

type ImageUploadInfo struct {
	Filename string `json:"filename"`
	ImageUrl string `json:"imageurl"`
	MimeType string `json:"mimetype"`
}

func Upload

func Upload(cflAccount, cflImagesToken, id string, imageContent []byte, imageURL string) (*ImageUploadInfo, error)

Jump to

Keyboard shortcuts

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