server

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const HEADER_DATA_LENGTH = 4 // bytes

Variables

This section is empty.

Functions

This section is empty.

Types

type MainHandler

type MainHandler struct{}

MainHandler handles common agent requests

func (*MainHandler) Handle

func (h *MainHandler) Handle(request router.Request) (interface{}, error)

Handle handles request

type Server

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

Server structure

func (*Server) Serve

func (s *Server) Serve() error

Serve starts TCP server

Jump to

Keyboard shortcuts

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