net

package
v0.13.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleMonitorRequest

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

HandleMonitorRequest handles the monitor http request. events are emitted to the monitor event channel.

func ScanJsonDelimitedFile added in v0.8.0

func ScanJsonDelimitedFile(fn string, sleep time.Duration, repeat int, emitter chan []byte)

Types

type Server

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

func NewHTTPServer

func NewHTTPServer() *Server

func (Server) Address

func (s Server) Address() string

func (*Server) Restart

func (s *Server) Restart(ctx context.Context, addr string) error

func (*Server) Router

func (s *Server) Router() chi.Router

func (*Server) Start

func (s *Server) Start(addr string) error

func (*Server) Stop added in v0.8.0

func (s *Server) Stop()

type SimuRpcHandler

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

func NewSimuRpcHandler

func NewSimuRpcHandler(simu *sim.Simulation) *SimuRpcHandler

func (SimuRpcHandler) HandleMessage

func (s SimuRpcHandler) HandleMessage(r *rpc.Request) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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