server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const API_URL = "https://api.mojang.com/"
View Source
const SESSION_URL = "https://sessionserver.mojang.com/"
View Source
const VERSION = 1.0

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key, defaultValue string) string

func InitServer

func InitServer()

Types

type CacheResponse

type CacheResponse struct {
	// contains filtered or unexported fields
}

func HasCache

func HasCache(cacheKey string) CacheResponse

func SaveCache

func SaveCache(cacheKey string, response MojangResponse) CacheResponse

type MojangResponse

type MojangResponse struct {
	Code int
	Json string
}

func BlockedServers

func BlockedServers() MojangResponse

func UsernameToUUID

func UsernameToUUID(userName string) MojangResponse

func UsernamesToUUIDs

func UsernamesToUUIDs(jsonData []byte) MojangResponse

func UuidToName

func UuidToName(uuid string, action string) MojangResponse

func UuidToNameHistory

func UuidToNameHistory(uuid string) MojangResponse

func UuidToProfile

func UuidToProfile(uuid string) MojangResponse

Jump to

Keyboard shortcuts

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