session

package
v0.0.0-...-d75711b Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

/ TCPのセッションを複数個持つための構造 / 基本的に https://github.com/google/gopacket/blob/master/tcpassembly/assembly.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key [2]uint64

func (*Key) String

func (k *Key) String() string

type Session

type Session struct {
	Key        Key
	LastActive time.Time
	Packets    []gopacket.Packet
	Closed     bool
}

type SessionPool

type SessionPool interface {
	AddTCP(gopacket.Packet, time.Time) error
	Flush(time.Time, func(sess *Session)) error
}

func NewPool

func NewPool() SessionPool

Jump to

Keyboard shortcuts

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