pcap

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PseudonymizeForm = forms.Form{
	ErrorMsg: "invalid data encountered in the PCAP pseudonymization form",
	Fields: []forms.Field{
		{
			Name: "key",
			Validators: []forms.Validator{
				forms.IsRequired{},
				forms.IsString{},
				forms.MatchesRegex{
					Regexp: regexp.MustCompile(`^.{8,32}$`),
				},
			},
		},
		{
			Name: "preserve-subnets",
			Validators: []forms.Validator{
				forms.IsOptional{Default: true},
				forms.IsBoolean{},
			},
		},
		{
			Name: "format",
			Validators: []forms.Validator{
				forms.IsOptional{},
				forms.IsString{},
				forms.IsIn{
					Choices: []interface{}{"pcap"},
				},
			},
		},
	},
	Transforms: []forms.Transform{},
}

Functions

func Protect

func Protect(c *gin.Context)

func Unprotect

func Unprotect(c *gin.Context)

Types

This section is empty.

Directories

Path Synopsis
Package pcapgo provides some native PCAP support, not requiring C libpcap to be installed.
Package pcapgo provides some native PCAP support, not requiring C libpcap to be installed.

Jump to

Keyboard shortcuts

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