region

package
v1.0.50 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Region

type Region string
const (
	// Brazil
	BR1 Region = "BR1"

	// Europe East
	EUN1 Region = "EUN1"

	// Europe West
	EUW1 Region = "EUW1"

	// Japan
	JP1 Region = "JP1"

	// Korea
	KR Region = "KR"

	// Latin America North
	LA1 Region = "LA1"

	// Latin America South
	LA2 Region = "LA2"

	// North America
	NA1 Region = "NA1"

	// Oceania
	OC1 Region = "OC1"

	// Philippines
	PH2 Region = "PH2"

	// Russia
	RU Region = "RU"

	// Singapore
	SG2 Region = "SG2"

	// Thailand
	TH2 Region = "TH2"

	// Turkey
	TR1 Region = "TR1"

	// Taiwan
	TW2 Region = "TW2"

	// Vietnam
	VN2 Region = "VN2"
)

func FromString

func FromString(rgn string) Region

func (Region) ContinentAccountV1

func (r Region) ContinentAccountV1() continent.Continent

Returns the continent that the region is in

func (Region) ContinentMatchV5

func (r Region) ContinentMatchV5() continent.Continent

Returns the continent that the region is in

func (Region) Host

func (r Region) Host() string

Returns the full hostname corresponding to the region.

func (Region) String

func (r Region) String() string

Jump to

Keyboard shortcuts

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