handlers

package
v0.0.0-...-c7d4642 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MethodNotAllowed

func MethodNotAllowed(c *gin.Context)

MethodNotAllowed will add a generic json body to an HTTP 405 response

func NotFound

func NotFound(c *gin.Context)

NotFound will add a generic json body to an HTTP 405 response

Types

type GateHandler

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

GateHandler will have methods to handle HTTP requests for opening or closing rules

func NewGateHandler

func NewGateHandler(timeoutConfig int64, rulesConfigValue string, dispatcher *adapters.AdapterDispatcher, logger *zap.Logger) (*GateHandler, error)

NewGateHandler is a constructor for GateHandler

func (GateHandler) PostOpen

func (g GateHandler) PostOpen(c *gin.Context)

PostOpen will handle a HTTP Post request to open firewall rules

Jump to

Keyboard shortcuts

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