restapihandler

package
v0.2.42 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPHandler

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

func NewHTTPHandler

func NewHTTPHandler(pool *ants.PoolWithFunc, config config.IConfig) *HTTPHandler

func (*HTTPHandler) ActionRequest

func (resthandler *HTTPHandler) ActionRequest(w http.ResponseWriter, r *http.Request)

func (*HTTPHandler) HandleActionRequest

func (resthandler *HTTPHandler) HandleActionRequest(ctx context.Context, receivedCommands []byte) error

HandleActionRequest Parse received commands and run the command

func (*HTTPHandler) SetupHTTPListener

func (resthandler *HTTPHandler) SetupHTTPListener(port string) error

SetupHTTPListener set up listening http servers

Jump to

Keyboard shortcuts

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