assetserve

package
v1.109.1184 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AssetsServerHeaderKeyName = "ASSETS_SERVER_KEY"

用于保证链接的安全的请求头(header)key名称

View Source
var AssetsServerHeaderKeyValue string

用于保证链接的安全的key值

这里简单的在请求所有资源时增加请求头的判断

不为空时生效

Functions

func NewAssetsHttpServer

func NewAssetsHttpServer() *assetsHttpServer

Types

type SSL

type SSL struct {
	SSLCert string
	SSLKey  string
}

证书配置,根据 Assets 或 LocalAssets 寻找证书文件位置

Jump to

Keyboard shortcuts

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