handlers

package
v0.0.0-...-3763b7f Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Palindrom

func Palindrom(w http.ResponseWriter, r *http.Request)

Palindrom will call several nodes to check palindrom from 0 to a number giver in "n" parameters. Eg. curl -s master/palindrom?n=10000

That handler make use of Go() method, and records results in a "counters" slice. After nodes responses, the total number of binary palindrom is written in the caller response.

func Sum

func Sum(w http.ResponseWriter, r *http.Request)

HandleSum will call Arith.Sum on one node.

Types

This section is empty.

Jump to

Keyboard shortcuts

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