objects

package
v0.1.3-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ARPScanPermission

type ARPScanPermission struct {
	Id        uint
	UsersId   uint
	Interface string
}

type ARPScanSession

type ARPScanSession struct {
	Id        uint
	Interface string
	UserId    uint
	Name      string
	Started   time.Time
	Ended     time.Time
	Script    []byte
	Hosts     []byte
}

type ARPScanSessionAdminView

type ARPScanSessionAdminView struct {
	User    *User
	Session *ARPScanSession
}

type ARPSpoofPermission

type ARPSpoofPermission struct {
	Id        uint
	UsersId   uint
	Interface string
}

type ApplicationLater

type ApplicationLater struct {
	Id   uint
	Name string
}

type CapturePermission

type CapturePermission struct {
	Id        uint
	UsersId   uint
	Interface string
}

type CaptureSession

type CaptureSession struct {
	Id                  uint
	UserId              uint
	Interface           string
	Promiscuous         bool
	Name                string
	Description         string
	Started             time.Time
	Ended               time.Time
	Pcap                []byte
	FilterScript        []byte
	TopologyJson        []byte
	HostCountJson       []byte
	LayerCountJson      []byte
	StreamTypeCountJson []byte
}

type CaptureSessionAdminView

type CaptureSessionAdminView struct {
	User    *User
	Session *CaptureSession
}

type Counter

type Counter struct {
	NamesOrder []string
	Names      map[string]int
	// contains filtered or unexported fields
}

func NewCounter

func NewCounter() *Counter

func (*Counter) Count

func (counter *Counter) Count(name string)

func (*Counter) Options

func (counter *Counter) Options() interface{}

type InterfaceInformation

type InterfaceInformation struct {
	Name    string
	Address string
}

type InternetLayer

type InternetLayer struct {
	Id   uint
	Name string
}

type Packet

type Packet struct {
	Id                 uint
	CaptureSessionsId  uint
	TransportLayer     string
	InternetLayer      string
	ApplicationLayer   string
	SourceAddress      string
	SourcePort         uint
	DestinationAddress string
	DestinationPort    uint
	Contents           []byte
}

type TCPStream

type TCPStream struct {
	Id               uint
	CaptureSessionId uint
	TCPStreamType    string
	Contents         []byte
}

type TCPStreamType

type TCPStreamType struct {
	Id         uint
	StreamType string
}

type Topology

type Topology struct {
	Categories []string
	Edges      map[string]map[string]struct{}
	Vertices   map[string]struct {
		Id       string
		Name     string
		Category int
	}
	// contains filtered or unexported fields
}

func NewTopology

func NewTopology() *Topology

func (*Topology) AddEdge

func (topology *Topology) AddEdge(from, to string) bool

func (*Topology) AddVertex

func (topology *Topology) AddVertex(name string) bool

func (*Topology) Options

func (topology *Topology) Options() interface{}

type TransportLayer

type TransportLayer struct {
	Id   uint
	Name string
}

type User

type User struct {
	Id                     uint
	Username               string
	PasswordHash           string
	SecurityQuestion       string
	SecurityQuestionAnswer string
	IsAdmin                bool
	IsEnabled              bool
	PasswordExpirationDate time.Time
}

Jump to

Keyboard shortcuts

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