handlers

package
v0.0.0-...-4a09e47 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHash

func GetHash(d *data.Data) http.Handler

Handler for the /hash/{jobId} endpoint

func GetStats

func GetStats(d *data.Data) http.Handler

Handler for the /stats endpoint

func PostHash

func PostHash(d *data.Data) http.Handler

Handler for the /hash endpoint

Types

type StatsResponse

type StatsResponse struct {
	Total   int   `json:"total"`
	Average int64 `json:"average"`
}

Jump to

Keyboard shortcuts

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