This repository has been archived on 2024-07-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
go-playit/api/api.go
2024-05-20 12:08:04 -03:00

60 lines
2.0 KiB
Go

package api
const (
GoPlayitVersion string = "0.17.1"
TunnelTypeMCBedrock string = "minecraft-bedrock" // Minecraft Bedrock server
TunnelTypeMCJava string = "minecraft-java" // Minecraft java server
TunnelTypeValheim string = "valheim" // valheim
TunnelTypeTerraria string = "terraria" // Terraria multiplayer
TunnelTypeStarbound string = "starbound" // starbound
TunnelTypeRust string = "rust" // Rust (No programmer language)
TunnelType7Days string = "7days" // 7days
TunnelTypeUnturned string = "unturned" // unturned
PortTypeBoth string = "both" // Tunnel support tcp and udp protocol
PortTypeTcp string = "tcp" // Tunnel support only tcp protocol
PortTypeUdp string = "udp" // Tunnel support only udp protocol
RegionGlobal string = "global" // Free account and premium
RegionSmartGlobal string = "smart-global" // Require premium account
RegionNorthAmerica string = "north-america" // Require premium account
RegionEurope string = "europe" // Require premium account
RegionAsia string = "asia" // Require premium account
RegionIndia string = "india" // Require premium account
RegionSouthAmerica string = "south-america" // Require premium account
)
var (
PlayitAPI string = "https://api.playit.gg" // Playit API
PortType []string = []string{
PortTypeBoth,
PortTypeTcp,
PortTypeUdp,
} // Tunnel protocol supports
TunnelType []string = []string{
TunnelTypeMCBedrock,
TunnelTypeMCJava,
TunnelTypeValheim,
TunnelTypeTerraria,
TunnelTypeStarbound,
TunnelTypeRust,
TunnelType7Days,
TunnelTypeUnturned,
} // Tunnel slice with current supported tunnels
Regions []string = []string{
RegionSmartGlobal,
RegionGlobal,
RegionNorthAmerica,
RegionEurope,
RegionAsia,
RegionIndia,
RegionSouthAmerica,
} // Regions slice
)
type Api struct {
Code string // Claim code
Secret string // Agent Secret
}