handlers

package
v0.0.0-...-456edf8 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEthHandler

func NewEthHandler(db *sqlx.DB) routes.Handler

Types

type ApiKeyRequest

type ApiKeyRequest struct {
}

type ApiKeyResponse

type ApiKeyResponse struct {
	ApiKey int `json:"api_key"`
}

type AverageHeightRequest

type AverageHeightRequest struct {
}

type AverageHeightResponse

type AverageHeightResponse struct {
	BlocksPerMinuteAVG int64 `json:"blocks_per_minute_avg"`
}

type CreateAccountRequest

type CreateAccountRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

request structs for http req and responses

type CreateAccountResponse

type CreateAccountResponse struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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