networkscan

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to the given bool value.

func Byte

func Byte(b byte) *byte

Byte returns a pointer to the given byte value.

func Complex128

func Complex128(c complex128) *complex128

Complex128 returns a pointer to the given complex128 value.

func Complex64

func Complex64(c complex64) *complex64

Complex64 returns a pointer to the given complex64 value.

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to the given float32 value.

func Float64

func Float64(f float64) *float64

Float64 returns a pointer to the given float64 value.

func Int

func Int(i int) *int

Int returns a pointer to the given int value.

func Int16

func Int16(i int16) *int16

Int16 returns a pointer to the given int16 value.

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to the given int32 value.

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to the given int64 value.

func Int8

func Int8(i int8) *int8

Int8 returns a pointer to the given int8 value.

func MustParseDate

func MustParseDate(date string) time.Time

MustParseDate attempts to parse the given string as a date time.Time, and panics upon failure.

func MustParseDateTime

func MustParseDateTime(datetime string) time.Time

MustParseDateTime attempts to parse the given string as a datetime time.Time, and panics upon failure.

func Rune

func Rune(r rune) *rune

Rune returns a pointer to the given rune value.

func String

func String(s string) *string

String returns a pointer to the given string value.

func Time

func Time(t time.Time) *time.Time

Time returns a pointer to the given time.Time value.

func UUID

func UUID(u uuid.UUID) *uuid.UUID

UUID returns a pointer to the given uuid.UUID value.

func Uint

func Uint(u uint) *uint

Uint returns a pointer to the given uint value.

func Uint16

func Uint16(u uint16) *uint16

Uint16 returns a pointer to the given uint16 value.

func Uint32

func Uint32(u uint32) *uint32

Uint32 returns a pointer to the given uint32 value.

func Uint64

func Uint64(u uint64) *uint64

Uint64 returns a pointer to the given uint64 value.

func Uint8

func Uint8(u uint8) *uint8

Uint8 returns a pointer to the given uint8 value.

func Uintptr

func Uintptr(u uintptr) *uintptr

Uintptr returns a pointer to the given uintptr value.

Types

type FileParam added in v0.0.25

type FileParam struct {
	io.Reader
	// contains filtered or unexported fields
}

FileParam is a file type suitable for multipart/form-data uploads.

func NewFileParam added in v0.0.25

func NewFileParam(
	reader io.Reader,
	filename string,
	contentType string,
	opts ...FileParamOption,
) *FileParam

NewFileParam returns a *FileParam type suitable for multipart/form-data uploads. All file upload endpoints accept a simple io.Reader, which is usually created by opening a file via os.Open.

However, some endpoints require additional metadata about the file such as a specific Content-Type or custom filename. FileParam makes it easier to create the correct type signature for these endpoints.

func (*FileParam) ContentType added in v0.0.25

func (f *FileParam) ContentType() string

func (*FileParam) Name added in v0.0.25

func (f *FileParam) Name() string

type FileParamOption added in v0.0.25

type FileParamOption interface {
	// contains filtered or unexported methods
}

FileParamOption adapts the behavior of the FileParam. No options are implemented yet, but this interface allows for future extensibility.

type ProtocolType added in v0.0.10

type ProtocolType string
const (
	ProtocolTypeDns        ProtocolType = "DNS"
	ProtocolTypeDhcp       ProtocolType = "DHCP"
	ProtocolTypeEcho       ProtocolType = "ECHO"
	ProtocolTypeFtp        ProtocolType = "FTP"
	ProtocolTypeHttp       ProtocolType = "HTTP"
	ProtocolTypeHttps      ProtocolType = "HTTPS"
	ProtocolTypeHttp2      ProtocolType = "HTTP2"
	ProtocolTypeImap       ProtocolType = "IMAP"
	ProtocolTypeImaps      ProtocolType = "IMAPS"
	ProtocolTypeIpmi       ProtocolType = "IPMI"
	ProtocolTypeIpsec      ProtocolType = "IPSEC"
	ProtocolTypeJdwp       ProtocolType = "JDWP"
	ProtocolTypeKafka      ProtocolType = "KAFKA"
	ProtocolTypeLdap       ProtocolType = "LDAP"
	ProtocolTypeLdaps      ProtocolType = "LDAPS"
	ProtocolTypeModbus     ProtocolType = "MODBUS"
	ProtocolTypeMqtt       ProtocolType = "MQTT"
	ProtocolTypeMssql      ProtocolType = "MSSQL"
	ProtocolTypeMysql      ProtocolType = "MYSQL"
	ProtocolTypeNetbios    ProtocolType = "NETBIOS"
	ProtocolTypeNtp        ProtocolType = "NTP"
	ProtocolTypeOracle     ProtocolType = "ORACLE"
	ProtocolTypeOpenvpn    ProtocolType = "OPENVPN"
	ProtocolTypePop3       ProtocolType = "POP3"
	ProtocolTypePop3S      ProtocolType = "POP3S"
	ProtocolTypePostgresql ProtocolType = "POSTGRESQL"
	ProtocolTypeRdp        ProtocolType = "RDP"
	ProtocolTypeRpc        ProtocolType = "RPC"
	ProtocolTypeRedis      ProtocolType = "REDIS"
	ProtocolTypeRsync      ProtocolType = "RSYNC"
	ProtocolTypeRtsp       ProtocolType = "RTSP"
	ProtocolTypeSmb        ProtocolType = "SMB"
	ProtocolTypeSmtp       ProtocolType = "SMTP"
	ProtocolTypeSmtps      ProtocolType = "SMTPS"
	ProtocolTypeSnmp       ProtocolType = "SNMP"
	ProtocolTypeSsh        ProtocolType = "SSH"
	ProtocolTypeStun       ProtocolType = "STUN"
	ProtocolTypeTelnet     ProtocolType = "TELNET"
	ProtocolTypeVnc        ProtocolType = "VNC"
	ProtocolTypeUnknown    ProtocolType = "UNKNOWN"
)

func NewProtocolTypeFromString added in v0.0.10

func NewProtocolTypeFromString(s string) (ProtocolType, error)

func (ProtocolType) Ptr added in v0.0.10

func (p ProtocolType) Ptr() *ProtocolType

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 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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