Documentation ¶
Index ¶
- func GetFirewallErrorMsg(service, destinationIP, destinationPort, sourceIP string) string
- func GetFirewallResolutionMsg(destinationIP, destinationPort, sourceIP string) string
- func GetFirewallSuccessMsg(service, destinationIP, destinationPort, sourceIP string) string
- type FirewallService
- type IFirewallService
- type MockFirewallService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFirewallErrorMsg ¶
func GetFirewallSuccessMsg ¶
Types ¶
type FirewallService ¶
type FirewallService struct {
// contains filtered or unexported fields
}
func NewFirewallService ¶
func (*FirewallService) GetFirewallDetails ¶
func (fw *FirewallService) GetFirewallDetails(reqBody models.FirewallRequest) models.FirewallResponse
type IFirewallService ¶
type IFirewallService interface {
GetFirewallDetails(models.FirewallRequest) models.FirewallResponse
}
type MockFirewallService ¶
type MockFirewallService struct {
GetFirewallDetailsFunc func(reqBody models.FirewallRequest) models.FirewallResponse
}
func (*MockFirewallService) GetFirewallDetails ¶
func (mnm *MockFirewallService) GetFirewallDetails(reqBody models.FirewallRequest) models.FirewallResponse
Click to show internal directories.
Click to hide internal directories.