constant

package
v0.0.0-...-6b3b694 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SiteDefaultHost = "penguin-stats.io"

	SiteGlobalMirrorHost        = "penguin-stats.io"
	SiteChinaMainlandMirrorHost = "penguin-stats.cn"

	ShimCompatibilityHeaderKey = "X-Penguin-Compatible"

	DefaultServer = "CN"
)
View Source
const LiveWebSocketSubprotocol = "v3.penguin-stats.live+proto"

Variables

View Source
var LocMap = map[string]*time.Location{
	"CN": time.FixedZone("UTC+8", +8*60*60),
	"US": time.FixedZone("UTC-7", -7*60*60),
	"JP": time.FixedZone("UTC+9", +9*60*60),
	"KR": time.FixedZone("UTC+9", +9*60*60),
}
View Source
var ServerIDMapping = map[string]uint8{
	"CN": 0,
	"US": 1,
	"JP": 2,
	"KR": 3,
}

ServerIDMapping should align with protobuf enum Server

View Source
var ServerNameMapping = map[string]string{
	"CN": "国服",
	"US": "美服",
	"JP": "日服",
	"KR": "韩服",
}
View Source
var Servers = []string{
	"CN",
	"US",
	"JP",
	"KR",
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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