storage

package
v0.0.0-...-7cfb5ad Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssembleObjectStorage

type AssembleObjectStorage interface {
	Init(db *sqlx.DB, base string) error
	Store(ctx context.Context, asm container.Assembly) error
}

type AssembleStorage

type AssembleStorage struct {
	// contains filtered or unexported fields
}

func NewAssembleStorage

func NewAssembleStorage(capStorage *CaptureStorage) (*AssembleStorage, error)

func (*AssembleStorage) Register

type CaptureStorage

type CaptureStorage struct {
	// contains filtered or unexported fields
}

func NewCaptureStorage

func NewCaptureStorage(path string) (*CaptureStorage, error)

type LayerStorage

type LayerStorage interface {
	Init(db *sqlx.DB) error
	Store(ctx context.Context, packet container.Packet) error
}

type PacketStorage

type PacketStorage struct {
	// contains filtered or unexported fields
}

func NewPacketStorage

func NewPacketStorage(capStorage *CaptureStorage) (*PacketStorage, error)

func (*PacketStorage) Close

func (s *PacketStorage) Close() error

func (*PacketStorage) Register

func (s *PacketStorage) Register(t gopacket.LayerType, storage LayerStorage) error

func (*PacketStorage) Store

func (s *PacketStorage) Store(ctx context.Context, packet container.Packet) error

Directories

Path Synopsis
assemble
packet

Jump to

Keyboard shortcuts

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