http

package
v0.0.0-...-4502c18 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2018 License: GPL-3.0 Imports: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadCast

func BroadCast(pm *peer.PeerManager, request rpc.Request, respArgs interface{}, count int) []*rpc.Response

BroadCast sends requests to the `count` random peers.

func Send

func Send(p peer.Peer, request rpc.Request, respArgs interface{}) (*rpc.Response, error)

Send sends a request to the specified address.

func Start

func Start(port int) error

Start starts http server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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