httpwebsocket

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: MIT Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PushBlockFlag    = true
	PushRawBlockFlag = true
	PushBlockTxsFlag = true
	PushNewTxsFlag   = true
)

Functions

func SendBlock2WSclient

func SendBlock2WSclient(v interface{})

func SendTx2Client added in v0.3.1

func SendTx2Client(v interface{})

func Start added in v0.3.1

func Start()

Types

type Handler

type Handler func(servers.Params) map[string]interface{}

type Server added in v0.3.1

type Server struct {
	sync.RWMutex
	*http.Server
	net.Listener
	websocket.Upgrader
	// contains filtered or unexported fields
}

func (*Server) Handler added in v0.3.1

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

func (*Server) IsValidMsg added in v0.3.1

func (s *Server) IsValidMsg(action string, reqMsg map[string]interface{}) bool

func (*Server) PushResult added in v0.3.1

func (s *Server) PushResult(action string, v interface{})

func (*Server) Start added in v0.3.1

func (s *Server) Start()

func (*Server) Stop added in v0.3.1

func (s *Server) Stop()

Jump to

Keyboard shortcuts

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