httpwebsocket

package
v0.3.2-e935 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2019 License: MIT Imports: 17 Imported by: 0

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