# Functions

NewAPI returns an API struct.

# Constants

EndpointGetScores is the endpoint to get the leaderboard.
EndpointGetUserByID is the endpoint to get a user by ID.
EndpointGetUserByRank is the endpoint to get a user by rank.
EndpointGetUserSearch is the endpoint to get search for users.

# Variables

DeathTypes as defined by the DD API.
ErrNoPlayersFound is returned when user search produces no users.
ErrPlayerNotFound returned when player not found from the DD API.
ErrStatusCode is returned when the Devil Daggers server responds with an error.

# Structs

API is used as an abstraction and to inject the client into the ddapi package.
Leaderboard is a struct returned after being converted from bytes.
Player is the struct returned after parsing the binary data blob returned from the DD API.