cdn

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SignName = "sign"

	// 文件路径-timestamp-rand-uid-自定义密钥
	MD5Source = "%s-%d-%s-0-%s"

	// timestamp-rand-uid-md5hash
	Sign = "%d-%s-0-%s"

	// DomainName/Filename?sign=timestamp-rand-uid-md5hash
	TypeA = "%s%s?" + SignName + "=%s"
)

Variables

This section is empty.

Functions

func PreSignedCDNURLTypeA

func PreSignedCDNURLTypeA(config CDNConfig, name string) (*url.URL, error)

func RandStringRunes

func RandStringRunes(n int) string

Types

type CDNConfig

type CDNConfig struct {
	Domain string
	Key    string
}

Jump to

Keyboard shortcuts

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