client

package
v0.0.0-...-98b6209 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2016 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetLogger

func SetLogger(logger *logging.Logger)

SetLogger allows setting a custom go-logging instance

Types

type Options

type Options struct {
	// Max number of connect retries upon failure
	MaxRetry   int
	RetrySleep time.Duration
}

type SnitchClient

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

func NewSnitchClient

func NewSnitchClient(socketFile string, options *Options) *SnitchClient

NewSnitchClient is used to talk to procsnitchd options can set to nil in order to utilize defaults

func (*SnitchClient) Dial

func (s *SnitchClient) Dial() error

func (*SnitchClient) LookupTCPSocketProcess

func (s *SnitchClient) LookupTCPSocketProcess(srcPort uint16, dstAddr net.IP, dstPort uint16) *procsnitch.Info

func (*SnitchClient) LookupUDPSocketProcess

func (s *SnitchClient) LookupUDPSocketProcess(srcPort uint16) *procsnitch.Info

func (*SnitchClient) LookupUNIXSocketProcess

func (s *SnitchClient) LookupUNIXSocketProcess(socketFile string) *procsnitch.Info

func (*SnitchClient) Start

func (s *SnitchClient) Start() error

func (*SnitchClient) Stop

func (s *SnitchClient) Stop() error

Jump to

Keyboard shortcuts

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