Documentation
¶
Index ¶
- func Bool(b bool) *bool
- func Byte(b byte) *byte
- func Complex128(c complex128) *complex128
- func Complex64(c complex64) *complex64
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int16(i int16) *int16
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func Int8(i int8) *int8
- func MustParseDate(date string) time.Time
- func MustParseDateTime(datetime string) time.Time
- func Rune(r rune) *rune
- func String(s string) *string
- func Time(t time.Time) *time.Time
- func UUID(u uuid.UUID) *uuid.UUID
- func Uint(u uint) *uint
- func Uint16(u uint16) *uint16
- func Uint32(u uint32) *uint32
- func Uint64(u uint64) *uint64
- func Uint8(u uint8) *uint8
- func Uintptr(u uintptr) *uintptr
- type BannerGrab
- type BannerGrabReport
- type CookieInfo
- type SameSiteType
- type ServiceType
- type TransportType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Complex128 ¶
func Complex128(c complex128) *complex128
Complex128 returns a pointer to the given complex128 value.
func MustParseDate ¶
MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.
func MustParseDateTime ¶
MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.
Types ¶
type BannerGrab ¶
type BannerGrab struct {
Host string `json:"host" url:"host"`
Ip string `json:"ip" url:"ip"`
Port int `json:"port" url:"port"`
Tls bool `json:"tls" url:"tls"`
Version string `json:"version" url:"version"`
Transport TransportType `json:"transport" url:"transport"`
Service ServiceType `json:"service" url:"service"`
StatusCode *string `json:"statusCode,omitempty" url:"statusCode,omitempty"`
Connection *string `json:"connection,omitempty" url:"connection,omitempty"`
ContentType *string `json:"contentType,omitempty" url:"contentType,omitempty"`
SameSite *SameSiteType `json:"sameSite,omitempty" url:"sameSite,omitempty"`
Metadata map[string]string `json:"metadata,omitempty" url:"metadata,omitempty"`
// contains filtered or unexported fields
}
func (*BannerGrab) GetExtraProperties ¶
func (b *BannerGrab) GetExtraProperties() map[string]interface{}
func (*BannerGrab) String ¶
func (b *BannerGrab) String() string
func (*BannerGrab) UnmarshalJSON ¶
func (b *BannerGrab) UnmarshalJSON(data []byte) error
type BannerGrabReport ¶
type BannerGrabReport struct {
Target string `json:"target" url:"target"`
BannerGrabs []*BannerGrab `json:"bannerGrabs,omitempty" url:"bannerGrabs,omitempty"`
Errors []string `json:"errors,omitempty" url:"errors,omitempty"`
// contains filtered or unexported fields
}
func (*BannerGrabReport) GetExtraProperties ¶
func (b *BannerGrabReport) GetExtraProperties() map[string]interface{}
func (*BannerGrabReport) String ¶
func (b *BannerGrabReport) String() string
func (*BannerGrabReport) UnmarshalJSON ¶
func (b *BannerGrabReport) UnmarshalJSON(data []byte) error
type CookieInfo ¶
type CookieInfo struct {
Data string `json:"data" url:"data"`
Expiration time.Time `json:"expiration" url:"expiration"`
Samesite bool `json:"samesite" url:"samesite"`
// contains filtered or unexported fields
}
func (*CookieInfo) GetExtraProperties ¶
func (c *CookieInfo) GetExtraProperties() map[string]interface{}
func (*CookieInfo) MarshalJSON ¶
func (c *CookieInfo) MarshalJSON() ([]byte, error)
func (*CookieInfo) String ¶
func (c *CookieInfo) String() string
func (*CookieInfo) UnmarshalJSON ¶
func (c *CookieInfo) UnmarshalJSON(data []byte) error
type SameSiteType ¶
type SameSiteType string
const ( SameSiteTypeNone SameSiteType = "NONE" SameSiteTypeLax SameSiteType = "LAX" SameSiteTypeStrict SameSiteType = "STRICT" SameSiteTypeUnknown SameSiteType = "UNKNOWN" )
func NewSameSiteTypeFromString ¶
func NewSameSiteTypeFromString(s string) (SameSiteType, error)
func (SameSiteType) Ptr ¶
func (s SameSiteType) Ptr() *SameSiteType
type ServiceType ¶
type ServiceType string
const ( ServiceTypeHttp ServiceType = "HTTP" ServiceTypeHttps ServiceType = "HTTPS" ServiceTypeFtp ServiceType = "FTP" ServiceTypeSftp ServiceType = "SFTP" ServiceTypeSsh ServiceType = "SSH" ServiceTypeTelnet ServiceType = "TELNET" ServiceTypeSmtp ServiceType = "SMTP" ServiceTypeSmtps ServiceType = "SMTPS" ServiceTypePop3 ServiceType = "POP3" ServiceTypePop3S ServiceType = "POP3S" ServiceTypeImap ServiceType = "IMAP" ServiceTypeImaps ServiceType = "IMAPS" ServiceTypeDns ServiceType = "DNS" ServiceTypeSnmp ServiceType = "SNMP" ServiceTypeKafka ServiceType = "KAFKA" ServiceTypeMqtt3 ServiceType = "MQTT3" ServiceTypeMqtt5 ServiceType = "MQTT5" ServiceTypeRdp ServiceType = "RDP" ServiceTypeRedis ServiceType = "REDIS" ServiceTypeLdap ServiceType = "LDAP" ServiceTypeLdaps ServiceType = "LDAPS" ServiceTypeRsync ServiceType = "RSYNC" ServiceTypeRpc ServiceType = "RPC" ServiceTypePostgressql ServiceType = "POSTGRESSQL" ServiceTypeMysql ServiceType = "MYSQL" ServiceTypeMssql ServiceType = "MSSQL" ServiceTypeOracledb ServiceType = "ORACLEDB" ServiceTypeVnc ServiceType = "VNC" ServiceTypeModbus ServiceType = "MODBUS" ServiceTypeSmb ServiceType = "SMB" ServiceTypeIpsec ServiceType = "IPSEC" ServiceTypeStun ServiceType = "STUN" ServiceTypeRtsp ServiceType = "RTSP" ServiceTypeDhcp ServiceType = "DHCP" ServiceTypeNtp ServiceType = "NTP" ServiceTypeOpenvpn ServiceType = "OPENVPN" ServiceTypeUnknown ServiceType = "UNKNOWN" )
func NewServiceTypeFromString ¶
func NewServiceTypeFromString(s string) (ServiceType, error)
func (ServiceType) Ptr ¶
func (s ServiceType) Ptr() *ServiceType
type TransportType ¶
type TransportType string
const ( TransportTypeTcp TransportType = "TCP" TransportTypeUdp TransportType = "UDP" TransportTypeUnknown TransportType = "UNKNOWN" )
func NewTransportTypeFromString ¶
func NewTransportTypeFromString(s string) (TransportType, error)
func (TransportType) Ptr ¶
func (t TransportType) Ptr() *TransportType
Click to show internal directories.
Click to hide internal directories.