gyazo

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const AccessTokenEnvName = "GYAZO_ACCESS_TOKEN"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func DefaultClient

func DefaultClient() *Client

func (*Client) Upload

func (c *Client) Upload(filePath string, option UploadOption) (string, error)

type UploadOption

type UploadOption struct {
	AccessPolicy     string
	MetadataIsPublic bool
	EnableExif       bool
	RefererURL       string
	App              string
	Title            string
	Desc             string
	CreatedAt        time.Time
	CollectionID     string
}

Jump to

Keyboard shortcuts

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