server

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MainHandler

type MainHandler struct {
	Config *config.Config
	Logger logger.Logger
}

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
	Router router.Router
	Logger logger.Logger
	Config *config.Config
	// contains filtered or unexported fields
}

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