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
Click to show internal directories.
Click to hide internal directories.