imoto

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2023 License: AGPL-3.0 Imports: 13 Imported by: 3 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

imoto

图片限时缓存图床

使用

详见文件夹test

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	API = "https://imoto.seku.su/"
)
View Source
var (
	ErrInvalidURL = errors.New("invalid URL")
)

Functions

func Bed added in v0.1.1

func Bed(t string, b []byte) (string, uint64, uint64, error)

Bed image to server

func BytesToString

func BytesToString(b []byte) string

BytesToString 没有内存开销的转换

func GetMD5

func GetMD5(u string) (m [md5.Size]byte, err error)

func Live added in v0.1.1

func Live(u string) bool

Live judge if the image is exist

func SplitMD5

func SplitMD5(m [md5.Size]byte) (path uint64, key uint64)

func StringToBytes

func StringToBytes(s string) (b []byte)

StringToBytes 没有内存开销的转换

func Uint64String

func Uint64String(x uint64) string

func Use added in v0.1.1

func Use(t string, u string, k uint64) ([]byte, error)

Use a URL once and delete it immediately

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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