api

package
v0.0.0-...-a9cf18a Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT 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, "Internal server error", http.StatusInternalServerError)
	}
)

Functions

This section is empty.

Types

type CoinBalanceResponse

type CoinBalanceResponse struct {
	Code    int
	Balance int64
}

type CointBalanceParams

type CointBalanceParams struct {
	Username string
}

type Error

type Error struct {
	Code    int
	Message string
}

Jump to

Keyboard shortcuts

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