session

package
v0.0.0-...-6c5db76 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

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

Session represents the database table

func NewSession

func NewSession(srcIP, dstIP net.Addr, version string, l zerolog.Logger) Session

NewSession creates a new session

func (*Session) AddChannel

func (s *Session) AddChannel(ch *channel.Channel)

AddChannel adds a channel to the session

func (*Session) AddScriptOutput

func (s *Session) AddScriptOutput(stdout, timing string)

AddScriptOutput adds the script output to the session

func (*Session) Insert

func (s *Session) Insert(tx pgx.Tx) error

Insert tries to insert the data into the database

func (*Session) Stop

func (s *Session) Stop()

Stop stops an active session

Jump to

Keyboard shortcuts

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