imageflux

package
v0.0.0-...-c6323e6 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EpImageFluxAPI is API endpoint of ImageFlux API
	EpImageFluxAPI = "https://console.imageflux.jp"
	// DefaultAPITimeout is default timeout of ImageFlux API
	DefaultAPITimeout = 5
)

Variables

View Source
var (
	// URLRe is regexp of URL scheme
	URLRe *regexp.Regexp
	// APIClient is http client of ImageFlux API
	APIClient *http.Client
)

Functions

func Issue

func Issue(command string) error

Issue issues request to ImageFlux API endpoint.

func Signature

func Signature(command string) (string, error)

Types

type APIParam

type APIParam struct {
	Token string
	URL   string
}

APIParam is parameter of ImageFlux API

type APIResponse

type APIResponse struct {
	OK   bool     `json:"ok"`
	URLs []string `json:"urls"`
}

APIResponse is response of ImageFlux API

type RawAPIResponse

type RawAPIResponse struct {
	StatusCode   int
	ResponseBody []byte
}

RawAPIResponse is raw response of ImageFlux API

Jump to

Keyboard shortcuts

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