network

package
v0.0.0-...-0f6999a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ICMPType_name = map[int32]string{
		0:   "EchoReply",
		3:   "DestinationUnreachable",
		4:   "SourceQuench",
		5:   "RedirectMessage",
		8:   "EchoRequest",
		9:   "RouterAdvertisement",
		10:  "RouterSolicitation",
		11:  "TimeExceeded",
		12:  "BadIPHeader",
		13:  "Timestamp",
		14:  "TimestampReply",
		40:  "Photuris",
		41:  "MobilityProto",
		42:  "ExtendedEchoRequest",
		43:  "ExtendedEchoReply",
		253: "RFC3692Experiment1",
		254: "RFC3692Experiment2",
	}
	ICMPType_value = map[string]int32{
		"EchoReply":              0,
		"DestinationUnreachable": 3,
		"SourceQuench":           4,
		"RedirectMessage":        5,
		"EchoRequest":            8,
		"RouterAdvertisement":    9,
		"RouterSolicitation":     10,
		"TimeExceeded":           11,
		"BadIPHeader":            12,
		"Timestamp":              13,
		"TimestampReply":         14,
		"Photuris":               40,
		"MobilityProto":          41,
		"ExtendedEchoRequest":    42,
		"ExtendedEchoReply":      43,
		"RFC3692Experiment1":     253,
		"RFC3692Experiment2":     254,
	}
)

Enum value maps for ICMPType.

View Source
var File_network_network_proto protoreflect.FileDescriptor
View Source
var File_network_packet_proto protoreflect.FileDescriptor
View Source
var File_network_service_proto protoreflect.FileDescriptor

Functions

func DefaultDeleteAddress

func DefaultDeleteAddress(ctx context.Context, in *Address, db *gorm.DB) error

func DefaultDeleteAddressSet

func DefaultDeleteAddressSet(ctx context.Context, in []*Address, db *gorm.DB) error

func DefaultDeleteDistance

func DefaultDeleteDistance(ctx context.Context, in *Distance, db *gorm.DB) error

func DefaultDeleteDistanceSet

func DefaultDeleteDistanceSet(ctx context.Context, in []*Distance, db *gorm.DB) error

func DefaultDeleteHop

func DefaultDeleteHop(ctx context.Context, in *Hop, db *gorm.DB) error

func DefaultDeleteHopSet

func DefaultDeleteHopSet(ctx context.Context, in []*Hop, db *gorm.DB) error

func DefaultDeleteICMPResponse

func DefaultDeleteICMPResponse(ctx context.Context, in *ICMPResponse, db *gorm.DB) error

func DefaultDeleteICMPResponseSet

func DefaultDeleteICMPResponseSet(ctx context.Context, in []*ICMPResponse, db *gorm.DB) error

func DefaultDeleteIPIDSequence

func DefaultDeleteIPIDSequence(ctx context.Context, in *IPIDSequence, db *gorm.DB) error

func DefaultDeleteIPIDSequenceSet

func DefaultDeleteIPIDSequenceSet(ctx context.Context, in []*IPIDSequence, db *gorm.DB) error

func DefaultDeleteSequence

func DefaultDeleteSequence(ctx context.Context, in *Sequence, db *gorm.DB) error

func DefaultDeleteSequenceSet

func DefaultDeleteSequenceSet(ctx context.Context, in []*Sequence, db *gorm.DB) error

func DefaultDeleteService

func DefaultDeleteService(ctx context.Context, in *Service, db *gorm.DB) error

func DefaultDeleteServiceSet

func DefaultDeleteServiceSet(ctx context.Context, in []*Service, db *gorm.DB) error

func DefaultDeleteTCPSequence

func DefaultDeleteTCPSequence(ctx context.Context, in *TCPSequence, db *gorm.DB) error

func DefaultDeleteTCPSequenceSet

func DefaultDeleteTCPSequenceSet(ctx context.Context, in []*TCPSequence, db *gorm.DB) error

func DefaultDeleteTCPTSSequence

func DefaultDeleteTCPTSSequence(ctx context.Context, in *TCPTSSequence, db *gorm.DB) error

func DefaultDeleteTCPTSSequenceSet

func DefaultDeleteTCPTSSequenceSet(ctx context.Context, in []*TCPTSSequence, db *gorm.DB) error

func DefaultDeleteTimes

func DefaultDeleteTimes(ctx context.Context, in *Times, db *gorm.DB) error

func DefaultDeleteTimesSet

func DefaultDeleteTimesSet(ctx context.Context, in []*Times, db *gorm.DB) error

func DefaultDeleteTrace

func DefaultDeleteTrace(ctx context.Context, in *Trace, db *gorm.DB) error

func DefaultDeleteTraceSet

func DefaultDeleteTraceSet(ctx context.Context, in []*Trace, db *gorm.DB) error

Types

type Address

type Address struct {

	// @gotags: display:"ID" readonly:"true"
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true"`
	// @gotags: display:"Created at" readonly:"true" xml:"-"
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty" display:"Created at" readonly:"true" xml:"-"`
	// @gotags: display:"Updated at" readonly:"true" xml:"-"
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty" display:"Updated at" readonly:"true" xml:"-"`
	// @gotags: xml:"addr,attr"
	Addr string `protobuf:"bytes,10,opt,name=Addr,proto3" json:"Addr,omitempty" xml:"addr,attr"`
	// @gotags: xml:"addrtype,attr"
	Type string `protobuf:"bytes,11,opt,name=Type,proto3" json:"Type,omitempty" xml:"addrtype,attr"`
	// @gotags: xml:"vendor,attr"
	Vendor string `protobuf:"bytes,12,opt,name=Vendor,proto3" json:"Vendor,omitempty" xml:"vendor,attr"`
	// contains filtered or unexported fields
}

Address - A network address

func DefaultApplyFieldMaskAddress

func DefaultApplyFieldMaskAddress(ctx context.Context, patchee *Address, patcher *Address, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Address, error)

DefaultApplyFieldMaskAddress patches an pbObject with patcher according to a field mask.

func DefaultCreateAddress

func DefaultCreateAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)

DefaultCreateAddress executes a basic gorm create call

func DefaultListAddress

func DefaultListAddress(ctx context.Context, db *gorm.DB) ([]*Address, error)

DefaultListAddress executes a gorm list call

func DefaultPatchAddress

func DefaultPatchAddress(ctx context.Context, in *Address, updateMask *field_mask.FieldMask, db *gorm.DB) (*Address, error)

DefaultPatchAddress executes a basic gorm update call with patch behavior

func DefaultPatchSetAddress

func DefaultPatchSetAddress(ctx context.Context, objects []*Address, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Address, error)

DefaultPatchSetAddress executes a bulk gorm update call with patch behavior

func DefaultReadAddress

func DefaultReadAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)

func DefaultStrictUpdateAddress

func DefaultStrictUpdateAddress(ctx context.Context, in *Address, db *gorm.DB) (*Address, error)

DefaultStrictUpdateAddress clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Address) Descriptor deprecated

func (*Address) Descriptor() ([]byte, []int)

Deprecated: Use Address.ProtoReflect.Descriptor instead.

func (*Address) GetAddr

func (x *Address) GetAddr() string

func (*Address) GetCreatedAt

func (x *Address) GetCreatedAt() *timestamppb.Timestamp

func (*Address) GetId

func (x *Address) GetId() string

func (*Address) GetType

func (x *Address) GetType() string

func (*Address) GetUpdatedAt

func (x *Address) GetUpdatedAt() *timestamppb.Timestamp

func (*Address) GetVendor

func (x *Address) GetVendor() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) ProtoReflect

func (x *Address) ProtoReflect() protoreflect.Message

func (*Address) Reset

func (x *Address) Reset()

func (*Address) String

func (x *Address) String() string

func (*Address) ToORM

func (m *Address) ToORM(ctx context.Context) (AddressORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type AddressORM

type AddressORM struct {
	Addr      string
	CreatedAt *time.Time
	Id        string `gorm:"type:uuid;primary_key"`
	Type      string
	UpdatedAt *time.Time
	Vendor    string
}

func (*AddressORM) BeforeCreate

func (address *AddressORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (AddressORM) TableName

func (AddressORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*AddressORM) ToPB

func (m *AddressORM) ToPB(ctx context.Context) (Address, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type AddressORMWithAfterCreate_

type AddressORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type AddressORMWithAfterDeleteSet

type AddressORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Address, *gorm.DB) error
}

type AddressORMWithAfterDelete_

type AddressORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type AddressORMWithAfterListFind

type AddressORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]AddressORM) error
}

type AddressORMWithAfterReadFind

type AddressORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type AddressORMWithAfterStrictUpdateSave

type AddressORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type AddressORMWithBeforeCreate_

type AddressORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeDeleteSet

type AddressORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Address, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeDelete_

type AddressORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeListApplyQuery

type AddressORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeListFind

type AddressORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeReadApplyQuery

type AddressORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeReadFind

type AddressORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeStrictUpdateCleanup

type AddressORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressORMWithBeforeStrictUpdateSave

type AddressORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type AddressWithAfterPatchSave

type AddressWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) error
}

type AddressWithAfterToORM

type AddressWithAfterToORM interface {
	AfterToORM(context.Context, *AddressORM) error
}

AddressAfterToORM called after default ToORM code

type AddressWithAfterToPB

type AddressWithAfterToPB interface {
	AfterToPB(context.Context, *Address) error
}

AddressAfterToPB called after default ToPB code

type AddressWithBeforePatchApplyFieldMask

type AddressWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type AddressWithBeforePatchRead

type AddressWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type AddressWithBeforePatchSave

type AddressWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Address, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type AddressWithBeforeToORM

type AddressWithBeforeToORM interface {
	BeforeToORM(context.Context, *AddressORM) error
}

AddressBeforeToORM called before default ToORM code

type AddressWithBeforeToPB

type AddressWithBeforeToPB interface {
	BeforeToPB(context.Context, *Address) error
}

AddressBeforeToPB called before default ToPB code

type Distance

type Distance struct {
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// @gotags: xml:"value,attr"
	Value int32 `protobuf:"varint,2,opt,name=Value,proto3" json:"Value,omitempty" xml:"value,attr"`
	// contains filtered or unexported fields
}

Distance - The number of hops before reaching the host

func DefaultApplyFieldMaskDistance

func DefaultApplyFieldMaskDistance(ctx context.Context, patchee *Distance, patcher *Distance, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Distance, error)

DefaultApplyFieldMaskDistance patches an pbObject with patcher according to a field mask.

func DefaultCreateDistance

func DefaultCreateDistance(ctx context.Context, in *Distance, db *gorm.DB) (*Distance, error)

DefaultCreateDistance executes a basic gorm create call

func DefaultListDistance

func DefaultListDistance(ctx context.Context, db *gorm.DB) ([]*Distance, error)

DefaultListDistance executes a gorm list call

func DefaultPatchDistance

func DefaultPatchDistance(ctx context.Context, in *Distance, updateMask *field_mask.FieldMask, db *gorm.DB) (*Distance, error)

DefaultPatchDistance executes a basic gorm update call with patch behavior

func DefaultPatchSetDistance

func DefaultPatchSetDistance(ctx context.Context, objects []*Distance, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Distance, error)

DefaultPatchSetDistance executes a bulk gorm update call with patch behavior

func DefaultReadDistance

func DefaultReadDistance(ctx context.Context, in *Distance, db *gorm.DB) (*Distance, error)

func DefaultStrictUpdateDistance

func DefaultStrictUpdateDistance(ctx context.Context, in *Distance, db *gorm.DB) (*Distance, error)

DefaultStrictUpdateDistance clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Distance) Descriptor deprecated

func (*Distance) Descriptor() ([]byte, []int)

Deprecated: Use Distance.ProtoReflect.Descriptor instead.

func (*Distance) GetId

func (x *Distance) GetId() string

func (*Distance) GetValue

func (x *Distance) GetValue() int32

func (*Distance) ProtoMessage

func (*Distance) ProtoMessage()

func (*Distance) ProtoReflect

func (x *Distance) ProtoReflect() protoreflect.Message

func (*Distance) Reset

func (x *Distance) Reset()

func (*Distance) String

func (x *Distance) String() string

func (*Distance) ToORM

func (m *Distance) ToORM(ctx context.Context) (DistanceORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type DistanceORM

type DistanceORM struct {
	Id    string `gorm:"type:uuid;primary_key"`
	Value int32
}

func (*DistanceORM) BeforeCreate

func (distance *DistanceORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (DistanceORM) TableName

func (DistanceORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*DistanceORM) ToPB

func (m *DistanceORM) ToPB(ctx context.Context) (Distance, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type DistanceORMWithAfterCreate_

type DistanceORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type DistanceORMWithAfterDeleteSet

type DistanceORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Distance, *gorm.DB) error
}

type DistanceORMWithAfterDelete_

type DistanceORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type DistanceORMWithAfterListFind

type DistanceORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]DistanceORM) error
}

type DistanceORMWithAfterReadFind

type DistanceORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type DistanceORMWithAfterStrictUpdateSave

type DistanceORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type DistanceORMWithBeforeCreate_

type DistanceORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DistanceORMWithBeforeDeleteSet

type DistanceORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Distance, *gorm.DB) (*gorm.DB, error)
}

type DistanceORMWithBeforeDelete_

type DistanceORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DistanceORMWithBeforeListApplyQuery

type DistanceORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DistanceORMWithBeforeListFind

type DistanceORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DistanceORMWithBeforeReadApplyQuery

type DistanceORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DistanceORMWithBeforeReadFind

type DistanceORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DistanceORMWithBeforeStrictUpdateCleanup

type DistanceORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DistanceORMWithBeforeStrictUpdateSave

type DistanceORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type DistanceWithAfterPatchSave

type DistanceWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Distance, *field_mask.FieldMask, *gorm.DB) error
}

type DistanceWithAfterToORM

type DistanceWithAfterToORM interface {
	AfterToORM(context.Context, *DistanceORM) error
}

DistanceAfterToORM called after default ToORM code

type DistanceWithAfterToPB

type DistanceWithAfterToPB interface {
	AfterToPB(context.Context, *Distance) error
}

DistanceAfterToPB called after default ToPB code

type DistanceWithBeforePatchApplyFieldMask

type DistanceWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Distance, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type DistanceWithBeforePatchRead

type DistanceWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Distance, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type DistanceWithBeforePatchSave

type DistanceWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Distance, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type DistanceWithBeforeToORM

type DistanceWithBeforeToORM interface {
	BeforeToORM(context.Context, *DistanceORM) error
}

DistanceBeforeToORM called before default ToORM code

type DistanceWithBeforeToPB

type DistanceWithBeforeToPB interface {
	BeforeToPB(context.Context, *Distance) error
}

DistanceBeforeToPB called before default ToPB code

type Hop

type Hop struct {
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// @gotags: xml:"ttl,attr"
	TTL float32 `protobuf:"fixed32,11,opt,name=TTL,proto3" json:"TTL,omitempty" xml:"ttl,attr"`
	// @gotags: xml:"rtt,attr"
	RTT string `protobuf:"bytes,12,opt,name=RTT,proto3" json:"RTT,omitempty" xml:"rtt,attr"`
	// @gotags: xml:"ipaddr,attr"
	IPAddr string `protobuf:"bytes,13,opt,name=IPAddr,proto3" json:"IPAddr,omitempty" xml:"ipaddr,attr"`
	// @gotags: xml:"host,attr"
	Host string `protobuf:"bytes,14,opt,name=Host,proto3" json:"Host,omitempty" xml:"host,attr"`
	// contains filtered or unexported fields
}

Hop - An IP hop to a host

func DefaultApplyFieldMaskHop

func DefaultApplyFieldMaskHop(ctx context.Context, patchee *Hop, patcher *Hop, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Hop, error)

DefaultApplyFieldMaskHop patches an pbObject with patcher according to a field mask.

func DefaultCreateHop

func DefaultCreateHop(ctx context.Context, in *Hop, db *gorm.DB) (*Hop, error)

DefaultCreateHop executes a basic gorm create call

func DefaultListHop

func DefaultListHop(ctx context.Context, db *gorm.DB) ([]*Hop, error)

DefaultListHop executes a gorm list call

func DefaultPatchHop

func DefaultPatchHop(ctx context.Context, in *Hop, updateMask *field_mask.FieldMask, db *gorm.DB) (*Hop, error)

DefaultPatchHop executes a basic gorm update call with patch behavior

func DefaultPatchSetHop

func DefaultPatchSetHop(ctx context.Context, objects []*Hop, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Hop, error)

DefaultPatchSetHop executes a bulk gorm update call with patch behavior

func DefaultReadHop

func DefaultReadHop(ctx context.Context, in *Hop, db *gorm.DB) (*Hop, error)

func DefaultStrictUpdateHop

func DefaultStrictUpdateHop(ctx context.Context, in *Hop, db *gorm.DB) (*Hop, error)

DefaultStrictUpdateHop clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Hop) Descriptor deprecated

func (*Hop) Descriptor() ([]byte, []int)

Deprecated: Use Hop.ProtoReflect.Descriptor instead.

func (*Hop) GetHost

func (x *Hop) GetHost() string

func (*Hop) GetIPAddr

func (x *Hop) GetIPAddr() string

func (*Hop) GetId

func (x *Hop) GetId() string

func (*Hop) GetRTT

func (x *Hop) GetRTT() string

func (*Hop) GetTTL

func (x *Hop) GetTTL() float32

func (*Hop) ProtoMessage

func (*Hop) ProtoMessage()

func (*Hop) ProtoReflect

func (x *Hop) ProtoReflect() protoreflect.Message

func (*Hop) Reset

func (x *Hop) Reset()

func (*Hop) String

func (x *Hop) String() string

func (*Hop) ToORM

func (m *Hop) ToORM(ctx context.Context) (HopORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type HopORM

type HopORM struct {
	Host    string
	IPAddr  string
	Id      string `gorm:"type:uuid;primary_key"`
	RTT     string
	TTL     float32
	TraceId *string
}

func (*HopORM) BeforeCreate

func (hop *HopORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (HopORM) TableName

func (HopORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*HopORM) ToPB

func (m *HopORM) ToPB(ctx context.Context) (Hop, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type HopORMWithAfterCreate_

type HopORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type HopORMWithAfterDeleteSet

type HopORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Hop, *gorm.DB) error
}

type HopORMWithAfterDelete_

type HopORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type HopORMWithAfterListFind

type HopORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]HopORM) error
}

type HopORMWithAfterReadFind

type HopORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type HopORMWithAfterStrictUpdateSave

type HopORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type HopORMWithBeforeCreate_

type HopORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HopORMWithBeforeDeleteSet

type HopORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Hop, *gorm.DB) (*gorm.DB, error)
}

type HopORMWithBeforeDelete_

type HopORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HopORMWithBeforeListApplyQuery

type HopORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HopORMWithBeforeListFind

type HopORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HopORMWithBeforeReadApplyQuery

type HopORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HopORMWithBeforeReadFind

type HopORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HopORMWithBeforeStrictUpdateCleanup

type HopORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HopORMWithBeforeStrictUpdateSave

type HopORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type HopWithAfterPatchSave

type HopWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Hop, *field_mask.FieldMask, *gorm.DB) error
}

type HopWithAfterToORM

type HopWithAfterToORM interface {
	AfterToORM(context.Context, *HopORM) error
}

HopAfterToORM called after default ToORM code

type HopWithAfterToPB

type HopWithAfterToPB interface {
	AfterToPB(context.Context, *Hop) error
}

HopAfterToPB called after default ToPB code

type HopWithBeforePatchApplyFieldMask

type HopWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Hop, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type HopWithBeforePatchRead

type HopWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Hop, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type HopWithBeforePatchSave

type HopWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Hop, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type HopWithBeforeToORM

type HopWithBeforeToORM interface {
	BeforeToORM(context.Context, *HopORM) error
}

HopBeforeToORM called before default ToORM code

type HopWithBeforeToPB

type HopWithBeforeToPB interface {
	BeforeToPB(context.Context, *Hop) error
}

HopBeforeToPB called before default ToPB code

type ICMPResponse

type ICMPResponse struct {
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// Type - The type of response that we received,
	// determines how to interpret the .Code given
	// with it.
	Type ICMPType `protobuf:"varint,2,opt,name=Type,proto3,enum=network.ICMPType" json:"Type,omitempty"`
	// Code - The precise "status" given along with its .ICMPType.
	// The Go generated package also contains a map with many of
	// these codes and their corresponding descriptions.
	Code uint32 `protobuf:"varint,3,opt,name=Code,proto3" json:"Code,omitempty"`
	// contains filtered or unexported fields
}

ICMPResponse - An ICMP response sent by a remote host. The TTL given by the response is stored in the Host object or the Scan Run object, but is not related to ICMP in anyway.

func DefaultApplyFieldMaskICMPResponse

func DefaultApplyFieldMaskICMPResponse(ctx context.Context, patchee *ICMPResponse, patcher *ICMPResponse, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*ICMPResponse, error)

DefaultApplyFieldMaskICMPResponse patches an pbObject with patcher according to a field mask.

func DefaultCreateICMPResponse

func DefaultCreateICMPResponse(ctx context.Context, in *ICMPResponse, db *gorm.DB) (*ICMPResponse, error)

DefaultCreateICMPResponse executes a basic gorm create call

func DefaultListICMPResponse

func DefaultListICMPResponse(ctx context.Context, db *gorm.DB) ([]*ICMPResponse, error)

DefaultListICMPResponse executes a gorm list call

func DefaultPatchICMPResponse

func DefaultPatchICMPResponse(ctx context.Context, in *ICMPResponse, updateMask *field_mask.FieldMask, db *gorm.DB) (*ICMPResponse, error)

DefaultPatchICMPResponse executes a basic gorm update call with patch behavior

func DefaultPatchSetICMPResponse

func DefaultPatchSetICMPResponse(ctx context.Context, objects []*ICMPResponse, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*ICMPResponse, error)

DefaultPatchSetICMPResponse executes a bulk gorm update call with patch behavior

func DefaultReadICMPResponse

func DefaultReadICMPResponse(ctx context.Context, in *ICMPResponse, db *gorm.DB) (*ICMPResponse, error)

func DefaultStrictUpdateICMPResponse

func DefaultStrictUpdateICMPResponse(ctx context.Context, in *ICMPResponse, db *gorm.DB) (*ICMPResponse, error)

DefaultStrictUpdateICMPResponse clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*ICMPResponse) Descriptor deprecated

func (*ICMPResponse) Descriptor() ([]byte, []int)

Deprecated: Use ICMPResponse.ProtoReflect.Descriptor instead.

func (*ICMPResponse) GetCode

func (x *ICMPResponse) GetCode() uint32

func (*ICMPResponse) GetId

func (x *ICMPResponse) GetId() string

func (*ICMPResponse) GetType

func (x *ICMPResponse) GetType() ICMPType

func (*ICMPResponse) ProtoMessage

func (*ICMPResponse) ProtoMessage()

func (*ICMPResponse) ProtoReflect

func (x *ICMPResponse) ProtoReflect() protoreflect.Message

func (*ICMPResponse) Reset

func (x *ICMPResponse) Reset()

func (*ICMPResponse) String

func (x *ICMPResponse) String() string

func (*ICMPResponse) ToORM

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type ICMPResponseORM

type ICMPResponseORM struct {
	Code uint32
	Id   string `gorm:"type:uuid;primary_key"`
	Type int32
}

func (*ICMPResponseORM) BeforeCreate

func (icmpresponse *ICMPResponseORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (ICMPResponseORM) TableName

func (ICMPResponseORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*ICMPResponseORM) ToPB

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type ICMPResponseORMWithAfterCreate_

type ICMPResponseORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type ICMPResponseORMWithAfterDeleteSet

type ICMPResponseORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*ICMPResponse, *gorm.DB) error
}

type ICMPResponseORMWithAfterDelete_

type ICMPResponseORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type ICMPResponseORMWithAfterListFind

type ICMPResponseORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]ICMPResponseORM) error
}

type ICMPResponseORMWithAfterReadFind

type ICMPResponseORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type ICMPResponseORMWithAfterStrictUpdateSave

type ICMPResponseORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type ICMPResponseORMWithBeforeCreate_

type ICMPResponseORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseORMWithBeforeDeleteSet

type ICMPResponseORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*ICMPResponse, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseORMWithBeforeDelete_

type ICMPResponseORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseORMWithBeforeListApplyQuery

type ICMPResponseORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseORMWithBeforeListFind

type ICMPResponseORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseORMWithBeforeReadApplyQuery

type ICMPResponseORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseORMWithBeforeReadFind

type ICMPResponseORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseORMWithBeforeStrictUpdateCleanup

type ICMPResponseORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseORMWithBeforeStrictUpdateSave

type ICMPResponseORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseWithAfterPatchSave

type ICMPResponseWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *ICMPResponse, *field_mask.FieldMask, *gorm.DB) error
}

type ICMPResponseWithAfterToORM

type ICMPResponseWithAfterToORM interface {
	AfterToORM(context.Context, *ICMPResponseORM) error
}

ICMPResponseAfterToORM called after default ToORM code

type ICMPResponseWithAfterToPB

type ICMPResponseWithAfterToPB interface {
	AfterToPB(context.Context, *ICMPResponse) error
}

ICMPResponseAfterToPB called after default ToPB code

type ICMPResponseWithBeforePatchApplyFieldMask

type ICMPResponseWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *ICMPResponse, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseWithBeforePatchRead

type ICMPResponseWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *ICMPResponse, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseWithBeforePatchSave

type ICMPResponseWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *ICMPResponse, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ICMPResponseWithBeforeToORM

type ICMPResponseWithBeforeToORM interface {
	BeforeToORM(context.Context, *ICMPResponseORM) error
}

ICMPResponseBeforeToORM called before default ToORM code

type ICMPResponseWithBeforeToPB

type ICMPResponseWithBeforeToPB interface {
	BeforeToPB(context.Context, *ICMPResponse) error
}

ICMPResponseBeforeToPB called before default ToPB code

type ICMPType

type ICMPType int32

ICMPType - The general type of ICMP response received from a host.

const (
	ICMPType_EchoReply ICMPType = 0
	// 1 and 2 reserved
	ICMPType_DestinationUnreachable ICMPType = 3
	ICMPType_SourceQuench           ICMPType = 4 // Deprecated
	ICMPType_RedirectMessage        ICMPType = 5
	// 6 deprecated
	// 7 reserved
	ICMPType_EchoRequest         ICMPType = 8
	ICMPType_RouterAdvertisement ICMPType = 9
	ICMPType_RouterSolicitation  ICMPType = 10
	ICMPType_TimeExceeded        ICMPType = 11
	ICMPType_BadIPHeader         ICMPType = 12
	ICMPType_Timestamp           ICMPType = 13
	ICMPType_TimestampReply      ICMPType = 14
	// 15-18 deprecated
	// 19,20-29 reserved
	// 30-39 deprecated
	ICMPType_Photuris            ICMPType = 40
	ICMPType_MobilityProto       ICMPType = 41 // Experimental
	ICMPType_ExtendedEchoRequest ICMPType = 42
	ICMPType_ExtendedEchoReply   ICMPType = 43
	// 44-252 reserved
	ICMPType_RFC3692Experiment1 ICMPType = 253
	ICMPType_RFC3692Experiment2 ICMPType = 254 // 255 reserved
)

func (ICMPType) Descriptor

func (ICMPType) Descriptor() protoreflect.EnumDescriptor

func (ICMPType) Enum

func (x ICMPType) Enum() *ICMPType

func (ICMPType) EnumDescriptor deprecated

func (ICMPType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ICMPType.Descriptor instead.

func (ICMPType) Number

func (x ICMPType) Number() protoreflect.EnumNumber

func (ICMPType) String

func (x ICMPType) String() string

func (ICMPType) Type

type IPIDSequence

type IPIDSequence struct {
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// @gotags: xml:"index,attr"
	Index int32 `protobuf:"varint,10,opt,name=Index,proto3" json:"Index,omitempty" xml:"index,attr"`
	// @gotags: xml:"difficulty,attr"
	Difficulty string `protobuf:"bytes,11,opt,name=Difficulty,proto3" json:"Difficulty,omitempty" xml:"difficulty,attr"`
	// @gotags: xml:"values,attr"
	Values string `protobuf:"bytes,12,opt,name=Values,proto3" json:"Values,omitempty" xml:"values,attr"`
	// contains filtered or unexported fields
}

IPIDSequence - Represents a detected IP ID Sequence

func DefaultApplyFieldMaskIPIDSequence

func DefaultApplyFieldMaskIPIDSequence(ctx context.Context, patchee *IPIDSequence, patcher *IPIDSequence, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*IPIDSequence, error)

DefaultApplyFieldMaskIPIDSequence patches an pbObject with patcher according to a field mask.

func DefaultCreateIPIDSequence

func DefaultCreateIPIDSequence(ctx context.Context, in *IPIDSequence, db *gorm.DB) (*IPIDSequence, error)

DefaultCreateIPIDSequence executes a basic gorm create call

func DefaultListIPIDSequence

func DefaultListIPIDSequence(ctx context.Context, db *gorm.DB) ([]*IPIDSequence, error)

DefaultListIPIDSequence executes a gorm list call

func DefaultPatchIPIDSequence

func DefaultPatchIPIDSequence(ctx context.Context, in *IPIDSequence, updateMask *field_mask.FieldMask, db *gorm.DB) (*IPIDSequence, error)

DefaultPatchIPIDSequence executes a basic gorm update call with patch behavior

func DefaultPatchSetIPIDSequence

func DefaultPatchSetIPIDSequence(ctx context.Context, objects []*IPIDSequence, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*IPIDSequence, error)

DefaultPatchSetIPIDSequence executes a bulk gorm update call with patch behavior

func DefaultReadIPIDSequence

func DefaultReadIPIDSequence(ctx context.Context, in *IPIDSequence, db *gorm.DB) (*IPIDSequence, error)

func DefaultStrictUpdateIPIDSequence

func DefaultStrictUpdateIPIDSequence(ctx context.Context, in *IPIDSequence, db *gorm.DB) (*IPIDSequence, error)

DefaultStrictUpdateIPIDSequence clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*IPIDSequence) Descriptor deprecated

func (*IPIDSequence) Descriptor() ([]byte, []int)

Deprecated: Use IPIDSequence.ProtoReflect.Descriptor instead.

func (*IPIDSequence) GetDifficulty

func (x *IPIDSequence) GetDifficulty() string

func (*IPIDSequence) GetId

func (x *IPIDSequence) GetId() string

func (*IPIDSequence) GetIndex

func (x *IPIDSequence) GetIndex() int32

func (*IPIDSequence) GetValues

func (x *IPIDSequence) GetValues() string

func (*IPIDSequence) ProtoMessage

func (*IPIDSequence) ProtoMessage()

func (*IPIDSequence) ProtoReflect

func (x *IPIDSequence) ProtoReflect() protoreflect.Message

func (*IPIDSequence) Reset

func (x *IPIDSequence) Reset()

func (*IPIDSequence) String

func (x *IPIDSequence) String() string

func (*IPIDSequence) ToORM

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type IPIDSequenceORM

type IPIDSequenceORM struct {
	Difficulty string
	Id         string `gorm:"type:uuid;primary_key"`
	Index      int32
	Values     string
}

func (*IPIDSequenceORM) BeforeCreate

func (ipidsequence *IPIDSequenceORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (IPIDSequenceORM) TableName

func (IPIDSequenceORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*IPIDSequenceORM) ToPB

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type IPIDSequenceORMWithAfterCreate_

type IPIDSequenceORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type IPIDSequenceORMWithAfterDeleteSet

type IPIDSequenceORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*IPIDSequence, *gorm.DB) error
}

type IPIDSequenceORMWithAfterDelete_

type IPIDSequenceORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type IPIDSequenceORMWithAfterListFind

type IPIDSequenceORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]IPIDSequenceORM) error
}

type IPIDSequenceORMWithAfterReadFind

type IPIDSequenceORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type IPIDSequenceORMWithAfterStrictUpdateSave

type IPIDSequenceORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type IPIDSequenceORMWithBeforeCreate_

type IPIDSequenceORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceORMWithBeforeDeleteSet

type IPIDSequenceORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*IPIDSequence, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceORMWithBeforeDelete_

type IPIDSequenceORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceORMWithBeforeListApplyQuery

type IPIDSequenceORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceORMWithBeforeListFind

type IPIDSequenceORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceORMWithBeforeReadApplyQuery

type IPIDSequenceORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceORMWithBeforeReadFind

type IPIDSequenceORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceORMWithBeforeStrictUpdateCleanup

type IPIDSequenceORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceORMWithBeforeStrictUpdateSave

type IPIDSequenceORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceWithAfterPatchSave

type IPIDSequenceWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *IPIDSequence, *field_mask.FieldMask, *gorm.DB) error
}

type IPIDSequenceWithAfterToORM

type IPIDSequenceWithAfterToORM interface {
	AfterToORM(context.Context, *IPIDSequenceORM) error
}

IPIDSequenceAfterToORM called after default ToORM code

type IPIDSequenceWithAfterToPB

type IPIDSequenceWithAfterToPB interface {
	AfterToPB(context.Context, *IPIDSequence) error
}

IPIDSequenceAfterToPB called after default ToPB code

type IPIDSequenceWithBeforePatchApplyFieldMask

type IPIDSequenceWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *IPIDSequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceWithBeforePatchRead

type IPIDSequenceWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *IPIDSequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceWithBeforePatchSave

type IPIDSequenceWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *IPIDSequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type IPIDSequenceWithBeforeToORM

type IPIDSequenceWithBeforeToORM interface {
	BeforeToORM(context.Context, *IPIDSequenceORM) error
}

IPIDSequenceBeforeToORM called before default ToORM code

type IPIDSequenceWithBeforeToPB

type IPIDSequenceWithBeforeToPB interface {
	BeforeToPB(context.Context, *IPIDSequence) error
}

IPIDSequenceBeforeToPB called before default ToPB code

type Sequence

type Sequence struct {
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// @gotags: xml:"class,attr"
	Class string `protobuf:"bytes,10,opt,name=Class,proto3" json:"Class,omitempty" xml:"class,attr"`
	// @gotags: xml:"values,attr"
	Values string `protobuf:"bytes,11,opt,name=Values,proto3" json:"Values,omitempty" xml:"values,attr"`
	// contains filtered or unexported fields
}

Sequence - Represents a detected Sequence

func DefaultApplyFieldMaskSequence

func DefaultApplyFieldMaskSequence(ctx context.Context, patchee *Sequence, patcher *Sequence, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Sequence, error)

DefaultApplyFieldMaskSequence patches an pbObject with patcher according to a field mask.

func DefaultCreateSequence

func DefaultCreateSequence(ctx context.Context, in *Sequence, db *gorm.DB) (*Sequence, error)

DefaultCreateSequence executes a basic gorm create call

func DefaultListSequence

func DefaultListSequence(ctx context.Context, db *gorm.DB) ([]*Sequence, error)

DefaultListSequence executes a gorm list call

func DefaultPatchSequence

func DefaultPatchSequence(ctx context.Context, in *Sequence, updateMask *field_mask.FieldMask, db *gorm.DB) (*Sequence, error)

DefaultPatchSequence executes a basic gorm update call with patch behavior

func DefaultPatchSetSequence

func DefaultPatchSetSequence(ctx context.Context, objects []*Sequence, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Sequence, error)

DefaultPatchSetSequence executes a bulk gorm update call with patch behavior

func DefaultReadSequence

func DefaultReadSequence(ctx context.Context, in *Sequence, db *gorm.DB) (*Sequence, error)

func DefaultStrictUpdateSequence

func DefaultStrictUpdateSequence(ctx context.Context, in *Sequence, db *gorm.DB) (*Sequence, error)

DefaultStrictUpdateSequence clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Sequence) Descriptor deprecated

func (*Sequence) Descriptor() ([]byte, []int)

Deprecated: Use Sequence.ProtoReflect.Descriptor instead.

func (*Sequence) GetClass

func (x *Sequence) GetClass() string

func (*Sequence) GetId

func (x *Sequence) GetId() string

func (*Sequence) GetValues

func (x *Sequence) GetValues() string

func (*Sequence) ProtoMessage

func (*Sequence) ProtoMessage()

func (*Sequence) ProtoReflect

func (x *Sequence) ProtoReflect() protoreflect.Message

func (*Sequence) Reset

func (x *Sequence) Reset()

func (*Sequence) String

func (x *Sequence) String() string

func (*Sequence) ToORM

func (m *Sequence) ToORM(ctx context.Context) (SequenceORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type SequenceORM

type SequenceORM struct {
	Class  string
	Id     string `gorm:"type:uuid;primary_key"`
	Values string
}

func (*SequenceORM) BeforeCreate

func (sequence *SequenceORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (SequenceORM) TableName

func (SequenceORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*SequenceORM) ToPB

func (m *SequenceORM) ToPB(ctx context.Context) (Sequence, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type SequenceORMWithAfterCreate_

type SequenceORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type SequenceORMWithAfterDeleteSet

type SequenceORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Sequence, *gorm.DB) error
}

type SequenceORMWithAfterDelete_

type SequenceORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type SequenceORMWithAfterListFind

type SequenceORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]SequenceORM) error
}

type SequenceORMWithAfterReadFind

type SequenceORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type SequenceORMWithAfterStrictUpdateSave

type SequenceORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type SequenceORMWithBeforeCreate_

type SequenceORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SequenceORMWithBeforeDeleteSet

type SequenceORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Sequence, *gorm.DB) (*gorm.DB, error)
}

type SequenceORMWithBeforeDelete_

type SequenceORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SequenceORMWithBeforeListApplyQuery

type SequenceORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SequenceORMWithBeforeListFind

type SequenceORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SequenceORMWithBeforeReadApplyQuery

type SequenceORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SequenceORMWithBeforeReadFind

type SequenceORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SequenceORMWithBeforeStrictUpdateCleanup

type SequenceORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SequenceORMWithBeforeStrictUpdateSave

type SequenceORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type SequenceWithAfterPatchSave

type SequenceWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Sequence, *field_mask.FieldMask, *gorm.DB) error
}

type SequenceWithAfterToORM

type SequenceWithAfterToORM interface {
	AfterToORM(context.Context, *SequenceORM) error
}

SequenceAfterToORM called after default ToORM code

type SequenceWithAfterToPB

type SequenceWithAfterToPB interface {
	AfterToPB(context.Context, *Sequence) error
}

SequenceAfterToPB called after default ToPB code

type SequenceWithBeforePatchApplyFieldMask

type SequenceWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Sequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type SequenceWithBeforePatchRead

type SequenceWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Sequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type SequenceWithBeforePatchSave

type SequenceWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Sequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type SequenceWithBeforeToORM

type SequenceWithBeforeToORM interface {
	BeforeToORM(context.Context, *SequenceORM) error
}

SequenceBeforeToORM called before default ToORM code

type SequenceWithBeforeToPB

type SequenceWithBeforeToPB interface {
	BeforeToPB(context.Context, *Sequence) error
}

SequenceBeforeToPB called before default ToPB code

type Service

type Service struct {

	// @gotags: display:"ID" readonly:"true" strict:"yes"
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true" strict:"yes"`
	// @gotags: display:"Created at" readonly:"true" xml:"-"
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty" display:"Created at" readonly:"true" xml:"-"`
	// @gotags: display:"Updated at" readonly:"true" xml:"-"
	UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty" display:"Updated at" readonly:"true" xml:"-"`
	// Nmap
	// @gotags: xml:"proto,attr" display:"Protocol"
	Protocol string `protobuf:"bytes,10,opt,name=Protocol,proto3" json:"Protocol,omitempty" xml:"proto,attr" display:"Protocol"`
	// @gotags: xml:"name,attr" display:"Name"
	Name string `protobuf:"bytes,11,opt,name=Name,proto3" json:"Name,omitempty" xml:"name,attr" display:"Name"`
	// @gotags: xml:"extrainfo,attr" display:"Extra Info"
	ExtraInfo string `protobuf:"bytes,12,opt,name=ExtraInfo,proto3" json:"ExtraInfo,omitempty" xml:"extrainfo,attr" display:"Extra Info"`
	// @gotags: xml:"devicetype,attr" display:"Device Type"
	DeviceType string `protobuf:"bytes,17,opt,name=DeviceType,proto3" json:"DeviceType,omitempty" xml:"devicetype,attr" display:"Device Type"`
	// @gotags: xml:"hostname,attr"
	Hostname string `protobuf:"bytes,18,opt,name=Hostname,proto3" json:"Hostname,omitempty" xml:"hostname,attr"`
	// @gotags: xml:"method,attr" display:"Method"
	Method string `protobuf:"bytes,19,opt,name=Method,proto3" json:"Method,omitempty" xml:"method,attr" display:"Method"`
	// @gotags: xml:"ostype,attr" display:"OS Type"
	OSType string `protobuf:"bytes,20,opt,name=OSType,proto3" json:"OSType,omitempty" xml:"ostype,attr" display:"OS Type"`
	// @gotags: xml:"product,attr" display:"Product"
	Product string `protobuf:"bytes,21,opt,name=Product,proto3" json:"Product,omitempty" xml:"product,attr" display:"Product"`
	// @gotags: xml:"rpcnum,attr" display:"RPC Number"
	RPCNum string `protobuf:"bytes,22,opt,name=RPCNum,proto3" json:"RPCNum,omitempty" xml:"rpcnum,attr" display:"RPC Number"`
	// @gotags: xml:"servicefp,attr" display:"Fingerprint"
	ServiceFP string `protobuf:"bytes,23,opt,name=ServiceFP,proto3" json:"ServiceFP,omitempty" xml:"servicefp,attr" display:"Fingerprint"`
	// @gotags: xml:"tunnel,attr" display:"Tunnel"
	Tunnel string `protobuf:"bytes,24,opt,name=Tunnel,proto3" json:"Tunnel,omitempty" xml:"tunnel,attr" display:"Tunnel"`
	// @gotags: xml:"lowver,attr" display:"Low Version"
	LowVersion string `protobuf:"bytes,25,opt,name=LowVersion,proto3" json:"LowVersion,omitempty" xml:"lowver,attr" display:"Low Version"`
	// @gotags: xml:"highver,attr" display:"High Version"
	HighVersion string `protobuf:"bytes,26,opt,name=HighVersion,proto3" json:"HighVersion,omitempty" xml:"highver,attr" display:"High Version"`
	// @gotags: xml:"version,attr" display:"Version"
	Version string `protobuf:"bytes,27,opt,name=Version,proto3" json:"Version,omitempty" xml:"version,attr" display:"Version"`
	// @gotags: xml:"conf,attr"
	Confidence int32 `protobuf:"varint,28,opt,name=Confidence,proto3" json:"Confidence,omitempty" xml:"conf,attr"`
	// @gotags: xml:"cpe" display:"CPEs"
	CPEs []string `protobuf:"bytes,29,rep,name=CPEs,proto3" json:"CPEs,omitempty" xml:"cpe" display:"CPEs"` // "Common Platform Enumeration":standardized way to name software apps, OSs and Hardware platforms
	// @gotags: display:"Authenticated"
	Authenticated  bool                 `protobuf:"varint,30,opt,name=Authenticated,proto3" json:"Authenticated,omitempty" display:"Authenticated"`
	AdditionalInfo []*Service_AddedInfo `protobuf:"bytes,40,rep,name=AdditionalInfo,proto3" json:"AdditionalInfo,omitempty"`
	// contains filtered or unexported fields
}

Service - A service running behind a port

func DefaultApplyFieldMaskService

func DefaultApplyFieldMaskService(ctx context.Context, patchee *Service, patcher *Service, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Service, error)

DefaultApplyFieldMaskService patches an pbObject with patcher according to a field mask.

func DefaultCreateService

func DefaultCreateService(ctx context.Context, in *Service, db *gorm.DB) (*Service, error)

DefaultCreateService executes a basic gorm create call

func DefaultListService

func DefaultListService(ctx context.Context, db *gorm.DB) ([]*Service, error)

DefaultListService executes a gorm list call

func DefaultPatchService

func DefaultPatchService(ctx context.Context, in *Service, updateMask *field_mask.FieldMask, db *gorm.DB) (*Service, error)

DefaultPatchService executes a basic gorm update call with patch behavior

func DefaultPatchSetService

func DefaultPatchSetService(ctx context.Context, objects []*Service, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Service, error)

DefaultPatchSetService executes a bulk gorm update call with patch behavior

func DefaultReadService

func DefaultReadService(ctx context.Context, in *Service, db *gorm.DB) (*Service, error)

func DefaultStrictUpdateService

func DefaultStrictUpdateService(ctx context.Context, in *Service, db *gorm.DB) (*Service, error)

DefaultStrictUpdateService clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Service) Descriptor deprecated

func (*Service) Descriptor() ([]byte, []int)

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetAdditionalInfo

func (x *Service) GetAdditionalInfo() []*Service_AddedInfo

func (*Service) GetAuthenticated

func (x *Service) GetAuthenticated() bool

func (*Service) GetCPEs

func (x *Service) GetCPEs() []string

func (*Service) GetConfidence

func (x *Service) GetConfidence() int32

func (*Service) GetCreatedAt

func (x *Service) GetCreatedAt() *timestamppb.Timestamp

func (*Service) GetDeviceType

func (x *Service) GetDeviceType() string

func (*Service) GetExtraInfo

func (x *Service) GetExtraInfo() string

func (*Service) GetHighVersion

func (x *Service) GetHighVersion() string

func (*Service) GetHostname

func (x *Service) GetHostname() string

func (*Service) GetId

func (x *Service) GetId() string

func (*Service) GetLowVersion

func (x *Service) GetLowVersion() string

func (*Service) GetMethod

func (x *Service) GetMethod() string

func (*Service) GetName

func (x *Service) GetName() string

func (*Service) GetOSType

func (x *Service) GetOSType() string

func (*Service) GetProduct

func (x *Service) GetProduct() string

func (*Service) GetProtocol

func (x *Service) GetProtocol() string

func (*Service) GetRPCNum

func (x *Service) GetRPCNum() string

func (*Service) GetServiceFP

func (x *Service) GetServiceFP() string

func (*Service) GetTunnel

func (x *Service) GetTunnel() string

func (*Service) GetUpdatedAt

func (x *Service) GetUpdatedAt() *timestamppb.Timestamp

func (*Service) GetVersion

func (x *Service) GetVersion() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

func (x *Service) ProtoReflect() protoreflect.Message

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

func (*Service) ToORM

func (m *Service) ToORM(ctx context.Context) (ServiceORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type ServiceORM

type ServiceORM struct {
	Authenticated bool
	Confidence    int32
	CreatedAt     *time.Time
	DeviceType    string
	ExtraInfo     string
	HighVersion   string
	Hostname      string
	Id            string `gorm:"type:uuid;primary_key"`
	LowVersion    string
	Method        string
	Name          string
	OSType        string
	Product       string
	Protocol      string
	RPCNum        string
	ServiceFP     string
	Tunnel        string
	UpdatedAt     *time.Time
	Version       string
}

func (*ServiceORM) BeforeCreate

func (service *ServiceORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (ServiceORM) TableName

func (ServiceORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*ServiceORM) ToPB

func (m *ServiceORM) ToPB(ctx context.Context) (Service, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type ServiceORMWithAfterCreate_

type ServiceORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type ServiceORMWithAfterDeleteSet

type ServiceORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Service, *gorm.DB) error
}

type ServiceORMWithAfterDelete_

type ServiceORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type ServiceORMWithAfterListFind

type ServiceORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]ServiceORM) error
}

type ServiceORMWithAfterReadFind

type ServiceORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type ServiceORMWithAfterStrictUpdateSave

type ServiceORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type ServiceORMWithBeforeCreate_

type ServiceORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ServiceORMWithBeforeDeleteSet

type ServiceORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Service, *gorm.DB) (*gorm.DB, error)
}

type ServiceORMWithBeforeDelete_

type ServiceORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ServiceORMWithBeforeListApplyQuery

type ServiceORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ServiceORMWithBeforeListFind

type ServiceORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ServiceORMWithBeforeReadApplyQuery

type ServiceORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ServiceORMWithBeforeReadFind

type ServiceORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ServiceORMWithBeforeStrictUpdateCleanup

type ServiceORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ServiceORMWithBeforeStrictUpdateSave

type ServiceORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type ServiceWithAfterPatchSave

type ServiceWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Service, *field_mask.FieldMask, *gorm.DB) error
}

type ServiceWithAfterToORM

type ServiceWithAfterToORM interface {
	AfterToORM(context.Context, *ServiceORM) error
}

ServiceAfterToORM called after default ToORM code

type ServiceWithAfterToPB

type ServiceWithAfterToPB interface {
	AfterToPB(context.Context, *Service) error
}

ServiceAfterToPB called after default ToPB code

type ServiceWithBeforePatchApplyFieldMask

type ServiceWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Service, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ServiceWithBeforePatchRead

type ServiceWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Service, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ServiceWithBeforePatchSave

type ServiceWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Service, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type ServiceWithBeforeToORM

type ServiceWithBeforeToORM interface {
	BeforeToORM(context.Context, *ServiceORM) error
}

ServiceBeforeToORM called before default ToORM code

type ServiceWithBeforeToPB

type ServiceWithBeforeToPB interface {
	BeforeToPB(context.Context, *Service) error
}

ServiceBeforeToPB called before default ToPB code

type Service_AddedInfo

type Service_AddedInfo struct {
	Key   string `protobuf:"bytes,1,opt,name=Key,proto3" json:"Key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=Value,proto3" json:"Value,omitempty"`
	// contains filtered or unexported fields
}

Additional information grabbed from any method ran against the service. Because some HTTP scanners yield map[string]interface{}, we always store them as map[string]string.

func (*Service_AddedInfo) Descriptor deprecated

func (*Service_AddedInfo) Descriptor() ([]byte, []int)

Deprecated: Use Service_AddedInfo.ProtoReflect.Descriptor instead.

func (*Service_AddedInfo) GetKey

func (x *Service_AddedInfo) GetKey() string

func (*Service_AddedInfo) GetValue

func (x *Service_AddedInfo) GetValue() string

func (*Service_AddedInfo) ProtoMessage

func (*Service_AddedInfo) ProtoMessage()

func (*Service_AddedInfo) ProtoReflect

func (x *Service_AddedInfo) ProtoReflect() protoreflect.Message

func (*Service_AddedInfo) Reset

func (x *Service_AddedInfo) Reset()

func (*Service_AddedInfo) String

func (x *Service_AddedInfo) String() string

type TCPSequence

type TCPSequence struct {
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// @gotags: xml:"index,attr"
	Index int32 `protobuf:"varint,10,opt,name=Index,proto3" json:"Index,omitempty" xml:"index,attr"`
	// @gotags: xml:"difficulty,attr"
	Difficulty string `protobuf:"bytes,11,opt,name=Difficulty,proto3" json:"Difficulty,omitempty" xml:"difficulty,attr"`
	// @gotags: xml:"values,attr"
	Values string `protobuf:"bytes,12,opt,name=Values,proto3" json:"Values,omitempty" xml:"values,attr"`
	// contains filtered or unexported fields
}

TCPSequence - Represents a detected TCP Sequence

func DefaultApplyFieldMaskTCPSequence

func DefaultApplyFieldMaskTCPSequence(ctx context.Context, patchee *TCPSequence, patcher *TCPSequence, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*TCPSequence, error)

DefaultApplyFieldMaskTCPSequence patches an pbObject with patcher according to a field mask.

func DefaultCreateTCPSequence

func DefaultCreateTCPSequence(ctx context.Context, in *TCPSequence, db *gorm.DB) (*TCPSequence, error)

DefaultCreateTCPSequence executes a basic gorm create call

func DefaultListTCPSequence

func DefaultListTCPSequence(ctx context.Context, db *gorm.DB) ([]*TCPSequence, error)

DefaultListTCPSequence executes a gorm list call

func DefaultPatchSetTCPSequence

func DefaultPatchSetTCPSequence(ctx context.Context, objects []*TCPSequence, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*TCPSequence, error)

DefaultPatchSetTCPSequence executes a bulk gorm update call with patch behavior

func DefaultPatchTCPSequence

func DefaultPatchTCPSequence(ctx context.Context, in *TCPSequence, updateMask *field_mask.FieldMask, db *gorm.DB) (*TCPSequence, error)

DefaultPatchTCPSequence executes a basic gorm update call with patch behavior

func DefaultReadTCPSequence

func DefaultReadTCPSequence(ctx context.Context, in *TCPSequence, db *gorm.DB) (*TCPSequence, error)

func DefaultStrictUpdateTCPSequence

func DefaultStrictUpdateTCPSequence(ctx context.Context, in *TCPSequence, db *gorm.DB) (*TCPSequence, error)

DefaultStrictUpdateTCPSequence clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*TCPSequence) Descriptor deprecated

func (*TCPSequence) Descriptor() ([]byte, []int)

Deprecated: Use TCPSequence.ProtoReflect.Descriptor instead.

func (*TCPSequence) GetDifficulty

func (x *TCPSequence) GetDifficulty() string

func (*TCPSequence) GetId

func (x *TCPSequence) GetId() string

func (*TCPSequence) GetIndex

func (x *TCPSequence) GetIndex() int32

func (*TCPSequence) GetValues

func (x *TCPSequence) GetValues() string

func (*TCPSequence) ProtoMessage

func (*TCPSequence) ProtoMessage()

func (*TCPSequence) ProtoReflect

func (x *TCPSequence) ProtoReflect() protoreflect.Message

func (*TCPSequence) Reset

func (x *TCPSequence) Reset()

func (*TCPSequence) String

func (x *TCPSequence) String() string

func (*TCPSequence) ToORM

func (m *TCPSequence) ToORM(ctx context.Context) (TCPSequenceORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type TCPSequenceORM

type TCPSequenceORM struct {
	Difficulty string
	Id         string `gorm:"type:uuid;primary_key"`
	Index      int32
	Values     string
}

func (*TCPSequenceORM) BeforeCreate

func (tcpsequence *TCPSequenceORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (TCPSequenceORM) TableName

func (TCPSequenceORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TCPSequenceORM) ToPB

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type TCPSequenceORMWithAfterCreate_

type TCPSequenceORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type TCPSequenceORMWithAfterDeleteSet

type TCPSequenceORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*TCPSequence, *gorm.DB) error
}

type TCPSequenceORMWithAfterDelete_

type TCPSequenceORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type TCPSequenceORMWithAfterListFind

type TCPSequenceORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]TCPSequenceORM) error
}

type TCPSequenceORMWithAfterReadFind

type TCPSequenceORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type TCPSequenceORMWithAfterStrictUpdateSave

type TCPSequenceORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type TCPSequenceORMWithBeforeCreate_

type TCPSequenceORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceORMWithBeforeDeleteSet

type TCPSequenceORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*TCPSequence, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceORMWithBeforeDelete_

type TCPSequenceORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceORMWithBeforeListApplyQuery

type TCPSequenceORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceORMWithBeforeListFind

type TCPSequenceORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceORMWithBeforeReadApplyQuery

type TCPSequenceORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceORMWithBeforeReadFind

type TCPSequenceORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceORMWithBeforeStrictUpdateCleanup

type TCPSequenceORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceORMWithBeforeStrictUpdateSave

type TCPSequenceORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceWithAfterPatchSave

type TCPSequenceWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *TCPSequence, *field_mask.FieldMask, *gorm.DB) error
}

type TCPSequenceWithAfterToORM

type TCPSequenceWithAfterToORM interface {
	AfterToORM(context.Context, *TCPSequenceORM) error
}

TCPSequenceAfterToORM called after default ToORM code

type TCPSequenceWithAfterToPB

type TCPSequenceWithAfterToPB interface {
	AfterToPB(context.Context, *TCPSequence) error
}

TCPSequenceAfterToPB called after default ToPB code

type TCPSequenceWithBeforePatchApplyFieldMask

type TCPSequenceWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *TCPSequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceWithBeforePatchRead

type TCPSequenceWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *TCPSequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceWithBeforePatchSave

type TCPSequenceWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *TCPSequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TCPSequenceWithBeforeToORM

type TCPSequenceWithBeforeToORM interface {
	BeforeToORM(context.Context, *TCPSequenceORM) error
}

TCPSequenceBeforeToORM called before default ToORM code

type TCPSequenceWithBeforeToPB

type TCPSequenceWithBeforeToPB interface {
	BeforeToPB(context.Context, *TCPSequence) error
}

TCPSequenceBeforeToPB called before default ToPB code

type TCPTSSequence

type TCPTSSequence struct {
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// @gotags: xml:"index,attr"
	Index int32 `protobuf:"varint,10,opt,name=Index,proto3" json:"Index,omitempty" xml:"index,attr"`
	// @gotags: xml:"difficulty,attr"
	Difficulty string `protobuf:"bytes,11,opt,name=Difficulty,proto3" json:"Difficulty,omitempty" xml:"difficulty,attr"`
	// @gotags: xml:"values,attr"
	Values string `protobuf:"bytes,12,opt,name=Values,proto3" json:"Values,omitempty" xml:"values,attr"`
	// contains filtered or unexported fields
}

TCPTSSequence - Represents a detected TCP TS Sequence

func DefaultApplyFieldMaskTCPTSSequence

func DefaultApplyFieldMaskTCPTSSequence(ctx context.Context, patchee *TCPTSSequence, patcher *TCPTSSequence, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*TCPTSSequence, error)

DefaultApplyFieldMaskTCPTSSequence patches an pbObject with patcher according to a field mask.

func DefaultCreateTCPTSSequence

func DefaultCreateTCPTSSequence(ctx context.Context, in *TCPTSSequence, db *gorm.DB) (*TCPTSSequence, error)

DefaultCreateTCPTSSequence executes a basic gorm create call

func DefaultListTCPTSSequence

func DefaultListTCPTSSequence(ctx context.Context, db *gorm.DB) ([]*TCPTSSequence, error)

DefaultListTCPTSSequence executes a gorm list call

func DefaultPatchSetTCPTSSequence

func DefaultPatchSetTCPTSSequence(ctx context.Context, objects []*TCPTSSequence, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*TCPTSSequence, error)

DefaultPatchSetTCPTSSequence executes a bulk gorm update call with patch behavior

func DefaultPatchTCPTSSequence

func DefaultPatchTCPTSSequence(ctx context.Context, in *TCPTSSequence, updateMask *field_mask.FieldMask, db *gorm.DB) (*TCPTSSequence, error)

DefaultPatchTCPTSSequence executes a basic gorm update call with patch behavior

func DefaultReadTCPTSSequence

func DefaultReadTCPTSSequence(ctx context.Context, in *TCPTSSequence, db *gorm.DB) (*TCPTSSequence, error)

func DefaultStrictUpdateTCPTSSequence

func DefaultStrictUpdateTCPTSSequence(ctx context.Context, in *TCPTSSequence, db *gorm.DB) (*TCPTSSequence, error)

DefaultStrictUpdateTCPTSSequence clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*TCPTSSequence) Descriptor deprecated

func (*TCPTSSequence) Descriptor() ([]byte, []int)

Deprecated: Use TCPTSSequence.ProtoReflect.Descriptor instead.

func (*TCPTSSequence) GetDifficulty

func (x *TCPTSSequence) GetDifficulty() string

func (*TCPTSSequence) GetId

func (x *TCPTSSequence) GetId() string

func (*TCPTSSequence) GetIndex

func (x *TCPTSSequence) GetIndex() int32

func (*TCPTSSequence) GetValues

func (x *TCPTSSequence) GetValues() string

func (*TCPTSSequence) ProtoMessage

func (*TCPTSSequence) ProtoMessage()

func (*TCPTSSequence) ProtoReflect

func (x *TCPTSSequence) ProtoReflect() protoreflect.Message

func (*TCPTSSequence) Reset

func (x *TCPTSSequence) Reset()

func (*TCPTSSequence) String

func (x *TCPTSSequence) String() string

func (*TCPTSSequence) ToORM

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type TCPTSSequenceORM

type TCPTSSequenceORM struct {
	Difficulty string
	Id         string `gorm:"type:uuid;primary_key"`
	Index      int32
	Values     string
}

func (*TCPTSSequenceORM) BeforeCreate

func (tcptssequence *TCPTSSequenceORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (TCPTSSequenceORM) TableName

func (TCPTSSequenceORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TCPTSSequenceORM) ToPB

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type TCPTSSequenceORMWithAfterCreate_

type TCPTSSequenceORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type TCPTSSequenceORMWithAfterDeleteSet

type TCPTSSequenceORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*TCPTSSequence, *gorm.DB) error
}

type TCPTSSequenceORMWithAfterDelete_

type TCPTSSequenceORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type TCPTSSequenceORMWithAfterListFind

type TCPTSSequenceORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]TCPTSSequenceORM) error
}

type TCPTSSequenceORMWithAfterReadFind

type TCPTSSequenceORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type TCPTSSequenceORMWithAfterStrictUpdateSave

type TCPTSSequenceORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type TCPTSSequenceORMWithBeforeCreate_

type TCPTSSequenceORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceORMWithBeforeDeleteSet

type TCPTSSequenceORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*TCPTSSequence, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceORMWithBeforeDelete_

type TCPTSSequenceORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceORMWithBeforeListApplyQuery

type TCPTSSequenceORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceORMWithBeforeListFind

type TCPTSSequenceORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceORMWithBeforeReadApplyQuery

type TCPTSSequenceORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceORMWithBeforeReadFind

type TCPTSSequenceORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceORMWithBeforeStrictUpdateCleanup

type TCPTSSequenceORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceORMWithBeforeStrictUpdateSave

type TCPTSSequenceORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceWithAfterPatchSave

type TCPTSSequenceWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *TCPTSSequence, *field_mask.FieldMask, *gorm.DB) error
}

type TCPTSSequenceWithAfterToORM

type TCPTSSequenceWithAfterToORM interface {
	AfterToORM(context.Context, *TCPTSSequenceORM) error
}

TCPTSSequenceAfterToORM called after default ToORM code

type TCPTSSequenceWithAfterToPB

type TCPTSSequenceWithAfterToPB interface {
	AfterToPB(context.Context, *TCPTSSequence) error
}

TCPTSSequenceAfterToPB called after default ToPB code

type TCPTSSequenceWithBeforePatchApplyFieldMask

type TCPTSSequenceWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *TCPTSSequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceWithBeforePatchRead

type TCPTSSequenceWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *TCPTSSequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceWithBeforePatchSave

type TCPTSSequenceWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *TCPTSSequence, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TCPTSSequenceWithBeforeToORM

type TCPTSSequenceWithBeforeToORM interface {
	BeforeToORM(context.Context, *TCPTSSequenceORM) error
}

TCPTSSequenceBeforeToORM called before default ToORM code

type TCPTSSequenceWithBeforeToPB

type TCPTSSequenceWithBeforeToPB interface {
	BeforeToPB(context.Context, *TCPTSSequence) error
}

TCPTSSequenceBeforeToPB called before default ToPB code

type Times

type Times struct {

	// @gotags: display:"ID" readonly:"true"
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty" display:"ID" readonly:"true"`
	// @gotags: xml:"srtt,attr"
	SRTT string `protobuf:"bytes,10,opt,name=SRTT,proto3" json:"SRTT,omitempty" xml:"srtt,attr"`
	// @gotags: xml:"rttvar,attr"
	RTT string `protobuf:"bytes,11,opt,name=RTT,proto3" json:"RTT,omitempty" xml:"rttvar,attr"`
	// @gotags: xml:"to,attr"
	To string `protobuf:"bytes,12,opt,name=To,proto3" json:"To,omitempty" xml:"to,attr"`
	// contains filtered or unexported fields
}

Times - Contains time statistics for a Nmap scan

func DefaultApplyFieldMaskTimes

func DefaultApplyFieldMaskTimes(ctx context.Context, patchee *Times, patcher *Times, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Times, error)

DefaultApplyFieldMaskTimes patches an pbObject with patcher according to a field mask.

func DefaultCreateTimes

func DefaultCreateTimes(ctx context.Context, in *Times, db *gorm.DB) (*Times, error)

DefaultCreateTimes executes a basic gorm create call

func DefaultListTimes

func DefaultListTimes(ctx context.Context, db *gorm.DB) ([]*Times, error)

DefaultListTimes executes a gorm list call

func DefaultPatchSetTimes

func DefaultPatchSetTimes(ctx context.Context, objects []*Times, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Times, error)

DefaultPatchSetTimes executes a bulk gorm update call with patch behavior

func DefaultPatchTimes

func DefaultPatchTimes(ctx context.Context, in *Times, updateMask *field_mask.FieldMask, db *gorm.DB) (*Times, error)

DefaultPatchTimes executes a basic gorm update call with patch behavior

func DefaultReadTimes

func DefaultReadTimes(ctx context.Context, in *Times, db *gorm.DB) (*Times, error)

func DefaultStrictUpdateTimes

func DefaultStrictUpdateTimes(ctx context.Context, in *Times, db *gorm.DB) (*Times, error)

DefaultStrictUpdateTimes clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Times) Descriptor deprecated

func (*Times) Descriptor() ([]byte, []int)

Deprecated: Use Times.ProtoReflect.Descriptor instead.

func (*Times) GetId

func (x *Times) GetId() string

func (*Times) GetRTT

func (x *Times) GetRTT() string

func (*Times) GetSRTT

func (x *Times) GetSRTT() string

func (*Times) GetTo

func (x *Times) GetTo() string

func (*Times) ProtoMessage

func (*Times) ProtoMessage()

func (*Times) ProtoReflect

func (x *Times) ProtoReflect() protoreflect.Message

func (*Times) Reset

func (x *Times) Reset()

func (*Times) String

func (x *Times) String() string

func (*Times) ToORM

func (m *Times) ToORM(ctx context.Context) (TimesORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type TimesORM

type TimesORM struct {
	Id   string `gorm:"type:uuid;primary_key"`
	RTT  string
	SRTT string
	To   string
}

func (*TimesORM) BeforeCreate

func (times *TimesORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (TimesORM) TableName

func (TimesORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TimesORM) ToPB

func (m *TimesORM) ToPB(ctx context.Context) (Times, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type TimesORMWithAfterCreate_

type TimesORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type TimesORMWithAfterDeleteSet

type TimesORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Times, *gorm.DB) error
}

type TimesORMWithAfterDelete_

type TimesORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type TimesORMWithAfterListFind

type TimesORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]TimesORM) error
}

type TimesORMWithAfterReadFind

type TimesORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type TimesORMWithAfterStrictUpdateSave

type TimesORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type TimesORMWithBeforeCreate_

type TimesORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TimesORMWithBeforeDeleteSet

type TimesORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Times, *gorm.DB) (*gorm.DB, error)
}

type TimesORMWithBeforeDelete_

type TimesORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TimesORMWithBeforeListApplyQuery

type TimesORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TimesORMWithBeforeListFind

type TimesORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TimesORMWithBeforeReadApplyQuery

type TimesORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TimesORMWithBeforeReadFind

type TimesORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TimesORMWithBeforeStrictUpdateCleanup

type TimesORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TimesORMWithBeforeStrictUpdateSave

type TimesORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TimesWithAfterPatchSave

type TimesWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Times, *field_mask.FieldMask, *gorm.DB) error
}

type TimesWithAfterToORM

type TimesWithAfterToORM interface {
	AfterToORM(context.Context, *TimesORM) error
}

TimesAfterToORM called after default ToORM code

type TimesWithAfterToPB

type TimesWithAfterToPB interface {
	AfterToPB(context.Context, *Times) error
}

TimesAfterToPB called after default ToPB code

type TimesWithBeforePatchApplyFieldMask

type TimesWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Times, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TimesWithBeforePatchRead

type TimesWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Times, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TimesWithBeforePatchSave

type TimesWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Times, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TimesWithBeforeToORM

type TimesWithBeforeToORM interface {
	BeforeToORM(context.Context, *TimesORM) error
}

TimesBeforeToORM called before default ToORM code

type TimesWithBeforeToPB

type TimesWithBeforeToPB interface {
	BeforeToPB(context.Context, *Times) error
}

TimesBeforeToPB called before default ToPB code

type Trace

type Trace struct {
	Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id,omitempty"`
	// @gotags: xml:"proto,attr"
	Protocol string `protobuf:"bytes,10,opt,name=Protocol,proto3" json:"Protocol,omitempty" xml:"proto,attr"`
	// @gotags: xml:"port,attr"
	Port int32 `protobuf:"varint,11,opt,name=Port,proto3" json:"Port,omitempty" xml:"port,attr"`
	// @gotags: xml:"hop"
	Hops []*Hop `protobuf:"bytes,12,rep,name=Hops,proto3" json:"Hops,omitempty" xml:"hop"`
	// contains filtered or unexported fields
}

Trace Represents the trace to a host, including the hops

func DefaultApplyFieldMaskTrace

func DefaultApplyFieldMaskTrace(ctx context.Context, patchee *Trace, patcher *Trace, updateMask *field_mask.FieldMask, prefix string, db *gorm.DB) (*Trace, error)

DefaultApplyFieldMaskTrace patches an pbObject with patcher according to a field mask.

func DefaultCreateTrace

func DefaultCreateTrace(ctx context.Context, in *Trace, db *gorm.DB) (*Trace, error)

DefaultCreateTrace executes a basic gorm create call

func DefaultListTrace

func DefaultListTrace(ctx context.Context, db *gorm.DB) ([]*Trace, error)

DefaultListTrace executes a gorm list call

func DefaultPatchSetTrace

func DefaultPatchSetTrace(ctx context.Context, objects []*Trace, updateMasks []*field_mask.FieldMask, db *gorm.DB) ([]*Trace, error)

DefaultPatchSetTrace executes a bulk gorm update call with patch behavior

func DefaultPatchTrace

func DefaultPatchTrace(ctx context.Context, in *Trace, updateMask *field_mask.FieldMask, db *gorm.DB) (*Trace, error)

DefaultPatchTrace executes a basic gorm update call with patch behavior

func DefaultReadTrace

func DefaultReadTrace(ctx context.Context, in *Trace, db *gorm.DB) (*Trace, error)

func DefaultStrictUpdateTrace

func DefaultStrictUpdateTrace(ctx context.Context, in *Trace, db *gorm.DB) (*Trace, error)

DefaultStrictUpdateTrace clears / replaces / appends first level 1:many children and then executes a gorm update call

func (*Trace) Descriptor deprecated

func (*Trace) Descriptor() ([]byte, []int)

Deprecated: Use Trace.ProtoReflect.Descriptor instead.

func (*Trace) GetHops

func (x *Trace) GetHops() []*Hop

func (*Trace) GetId

func (x *Trace) GetId() string

func (*Trace) GetPort

func (x *Trace) GetPort() int32

func (*Trace) GetProtocol

func (x *Trace) GetProtocol() string

func (*Trace) ProtoMessage

func (*Trace) ProtoMessage()

func (*Trace) ProtoReflect

func (x *Trace) ProtoReflect() protoreflect.Message

func (*Trace) Reset

func (x *Trace) Reset()

func (*Trace) String

func (x *Trace) String() string

func (*Trace) ToORM

func (m *Trace) ToORM(ctx context.Context) (TraceORM, error)

ToORM runs the BeforeToORM hook if present, converts the fields of this object to ORM format, runs the AfterToORM hook, then returns the ORM object

type TraceORM

type TraceORM struct {
	Hops     []*HopORM `gorm:"foreignkey:TraceId;association_foreignkey:Id"`
	Id       string    `gorm:"type:uuid;primary_key"`
	Port     int32
	Protocol string
}

func (*TraceORM) BeforeCreate

func (trace *TraceORM) BeforeCreate(tx *gorm.DB) (err error)

BeforeCreate - GORM-specific autogenerated helpers.

func (TraceORM) TableName

func (TraceORM) TableName() string

TableName overrides the default tablename generated by GORM

func (*TraceORM) ToPB

func (m *TraceORM) ToPB(ctx context.Context) (Trace, error)

ToPB runs the BeforeToPB hook if present, converts the fields of this object to PB format, runs the AfterToPB hook, then returns the PB object

type TraceORMWithAfterCreate_

type TraceORMWithAfterCreate_ interface {
	AfterCreate_(context.Context, *gorm.DB) error
}

type TraceORMWithAfterDeleteSet

type TraceORMWithAfterDeleteSet interface {
	AfterDeleteSet(context.Context, []*Trace, *gorm.DB) error
}

type TraceORMWithAfterDelete_

type TraceORMWithAfterDelete_ interface {
	AfterDelete_(context.Context, *gorm.DB) error
}

type TraceORMWithAfterListFind

type TraceORMWithAfterListFind interface {
	AfterListFind(context.Context, *gorm.DB, *[]TraceORM) error
}

type TraceORMWithAfterReadFind

type TraceORMWithAfterReadFind interface {
	AfterReadFind(context.Context, *gorm.DB) error
}

type TraceORMWithAfterStrictUpdateSave

type TraceORMWithAfterStrictUpdateSave interface {
	AfterStrictUpdateSave(context.Context, *gorm.DB) error
}

type TraceORMWithBeforeCreate_

type TraceORMWithBeforeCreate_ interface {
	BeforeCreate_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TraceORMWithBeforeDeleteSet

type TraceORMWithBeforeDeleteSet interface {
	BeforeDeleteSet(context.Context, []*Trace, *gorm.DB) (*gorm.DB, error)
}

type TraceORMWithBeforeDelete_

type TraceORMWithBeforeDelete_ interface {
	BeforeDelete_(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TraceORMWithBeforeListApplyQuery

type TraceORMWithBeforeListApplyQuery interface {
	BeforeListApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TraceORMWithBeforeListFind

type TraceORMWithBeforeListFind interface {
	BeforeListFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TraceORMWithBeforeReadApplyQuery

type TraceORMWithBeforeReadApplyQuery interface {
	BeforeReadApplyQuery(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TraceORMWithBeforeReadFind

type TraceORMWithBeforeReadFind interface {
	BeforeReadFind(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TraceORMWithBeforeStrictUpdateCleanup

type TraceORMWithBeforeStrictUpdateCleanup interface {
	BeforeStrictUpdateCleanup(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TraceORMWithBeforeStrictUpdateSave

type TraceORMWithBeforeStrictUpdateSave interface {
	BeforeStrictUpdateSave(context.Context, *gorm.DB) (*gorm.DB, error)
}

type TraceWithAfterPatchSave

type TraceWithAfterPatchSave interface {
	AfterPatchSave(context.Context, *Trace, *field_mask.FieldMask, *gorm.DB) error
}

type TraceWithAfterToORM

type TraceWithAfterToORM interface {
	AfterToORM(context.Context, *TraceORM) error
}

TraceAfterToORM called after default ToORM code

type TraceWithAfterToPB

type TraceWithAfterToPB interface {
	AfterToPB(context.Context, *Trace) error
}

TraceAfterToPB called after default ToPB code

type TraceWithBeforePatchApplyFieldMask

type TraceWithBeforePatchApplyFieldMask interface {
	BeforePatchApplyFieldMask(context.Context, *Trace, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TraceWithBeforePatchRead

type TraceWithBeforePatchRead interface {
	BeforePatchRead(context.Context, *Trace, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TraceWithBeforePatchSave

type TraceWithBeforePatchSave interface {
	BeforePatchSave(context.Context, *Trace, *field_mask.FieldMask, *gorm.DB) (*gorm.DB, error)
}

type TraceWithBeforeToORM

type TraceWithBeforeToORM interface {
	BeforeToORM(context.Context, *TraceORM) error
}

TraceBeforeToORM called before default ToORM code

type TraceWithBeforeToPB

type TraceWithBeforeToPB interface {
	BeforeToPB(context.Context, *Trace) error
}

TraceBeforeToPB called before default ToPB code

Jump to

Keyboard shortcuts

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