Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MethodNotAllowed ¶
MethodNotAllowed 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
Click to show internal directories.
Click to hide internal directories.