recorder

package
v0.0.0-...-5d7a24c Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Capacity int = 10 // capacity of each subscriber

Functions

func Add

func Add(hash string, clientAddr, targetAddr net.Addr, transport string, payload []byte)

func Subscribe

func Subscribe(uid string, transport, targetPort string, includePayload bool) chan Record

func Unsubscribe

func Unsubscribe(uid string)

Types

type Record

type Record struct {
	Timestamp  string
	UserHash   string
	ClientIp   string
	ClientPort string
	TargetHost string
	TargetPort string
	Transport  string
	Payload    []byte
}

Jump to

Keyboard shortcuts

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