Documentation ¶
Index ¶
- Constants
- type AddrType
- type Message
- type Metadata
- func (m *Metadata) WithClientIP(ip net.IP) *Metadata
- func (m *Metadata) WithClientPort(port int) *Metadata
- func (m *Metadata) WithDomain(d string) *Metadata
- func (m *Metadata) WithIngress(d string) *Metadata
- func (m *Metadata) WithProcessName(d string) *Metadata
- func (m *Metadata) WithProcessPath(d string) *Metadata
- func (m *Metadata) WithRemoteIP(ip net.IP) *Metadata
- func (m *Metadata) WithRemotePort(port int) *Metadata
Constants ¶
View Source
const ( AddrTypeIP AddrTypeDomain )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { // take from connect socket // client starts the connection ClientIP net.IP ClientPort int // take from message below // remote is what client want to connect to RemoteIP net.IP RemotePort int Domain string ProcessName string ProcessPath string // take from ingress Ingress string }
func NewMetadata ¶
func NewMetadata() *Metadata
func (*Metadata) WithClientPort ¶
func (*Metadata) WithDomain ¶
func (*Metadata) WithIngress ¶
func (*Metadata) WithProcessName ¶
func (*Metadata) WithProcessPath ¶
func (*Metadata) WithRemotePort ¶
Click to show internal directories.
Click to hide internal directories.