api

package
v0.0.0-...-ab27e5b Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RequestErrorHandler = func(w http.ResponseWriter, err error) {
		writeError(w, err.Error(), http.StatusBadRequest)
	}
	InternalErrorHandler = func(w http.ResponseWriter) {
		writeError(w, "An Unexpected Error Occurred.", http.StatusInternalServerError)
	}
)

Functions

This section is empty.

Types

type CoinBalanceParams

type CoinBalanceParams struct {
	Username string
}

Coin Balance Params

type CoinBalanceResponse

type CoinBalanceResponse struct {
	// Success Code, usually 200
	Code int
	// Account Balance
	Balance int64
}

Coin Balance Response

type Error

type Error struct {
	// Error Code
	Code int
	// Error Message
	Message string
}

Error Response

Jump to

Keyboard shortcuts

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