broadcast

package
v0.0.0-...-e0ea44e Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2019 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Root string = "/"

Root is the home endpoint where hub are registered to receive node updates

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is the responsible to send node state to registered hub

func New

func New(service *service.Channel) *Server

New creates a new Server struct with the required service

func (*Server) Close

func (s *Server) Close()

Close this server and all registered client connections

func (*Server) HandleRequest

func (s *Server) HandleRequest(w http.ResponseWriter, r *http.Request)

HandleRequest handle all request from hub that are not Ethereum nodes

Jump to

Keyboard shortcuts

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