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: 1

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